Update the mingw32uwp wrapper libraries

- windowsapp is the preferred library when targeting Windows 10
https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis

- _UCRT ensures we use the Universal C runtime
This commit is contained in:
Steve Lhomme authored and Martin Storsjö committed 2020-06-04 00:19:33 +03:00
1 parent e34de8eb21
commit 26e56ed5f6
3 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -191,9 +191,11 @@ int _tmain(int argc, TCHAR* argv[]) {
// the Windows Store API only supports Windows Unicode (some rare ANSI ones are available)
exec_argv[arg++] = _T("-DUNICODE");
// add the minimum runtime to use for UWP targets
exec_argv[arg++] = _T("-Wl,-lmincore");
exec_argv[arg++] = _T("-Wl,-lwindowsapp");
// This requires that the default crt is ucrt.
exec_argv[arg++] = _T("-Wl,-lvcruntime140_app");
// force the user of Universal C Runtime
exec_argv[arg++] = _T("-D_UCRT");
}
exec_argv[arg++] = _T("-target");
+3 -1
View File
@@ -73,9 +73,11 @@ mingw32uwp)
# the Windows Store API only supports Windows Unicode (some rare ANSI ones are available)
FLAGS="$FLAGS -DUNICODE"
# add the minimum runtime to use for UWP targets
FLAGS="$FLAGS -Wl,-lmincore"
FLAGS="$FLAGS -Wl,-lwindowsapp"
# This requires that the default crt is ucrt.
FLAGS="$FLAGS -Wl,-lvcruntime140_app"
# Force the Universal C Runtime
FLAGS="$FLAGS -D_UCRT"
;;
esac
+1 -1
View File
@@ -34,7 +34,7 @@ esac
FLAGS="-m $M"
case $TARGET_OS in
mingw32uwp)
FLAGS="$FLAGS -lmincore -lvcruntime140_app"
FLAGS="$FLAGS -lwindowsapp -lvcruntime140_app"
;;
esac
ld.lld $FLAGS "$@"