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");