wrappers: link with the Windows Store specific runtime for UWP
This commit is contained in:
1 parent
a270bc3cad
commit
cd73ed8308
4 files changed
+27
-3
No files matched your search
@@ -305,6 +305,8 @@ int _tmain(int argc, TCHAR* argv[]) {
|
||||
exec_argv[arg++] = _T("-DUNICODE");
|
||||
// add the minimum runtime to use for UWP targets
|
||||
exec_argv[arg++] = _T("-Wl,-lmincore");
|
||||
// This requires that the default crt is ucrt.
|
||||
exec_argv[arg++] = _T("-Wl,-lvcruntime140_app");
|
||||
}
|
||||
|
||||
exec_argv[arg++] = _T("-target");
|
||||
|
||||
@@ -63,6 +63,8 @@ mingw32uwp)
|
||||
FLAGS="$FLAGS -DUNICODE"
|
||||
# add the minimum runtime to use for UWP targets
|
||||
FLAGS="$FLAGS -Wl,-lmincore"
|
||||
# This requires that the default crt is ucrt.
|
||||
FLAGS="$FLAGS -Wl,-lvcruntime140_app"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ esac
|
||||
FLAGS="-m $M"
|
||||
case $TARGET_OS in
|
||||
mingw32uwp)
|
||||
FLAGS="$FLAGS -lmincore"
|
||||
FLAGS="$FLAGS -lmincore -lvcruntime140_app"
|
||||
;;
|
||||
esac
|
||||
ld.lld $FLAGS "$@"
|
||||
Reference in new issue
Block a user