wrappers: Use -lucrtapp instead of -lvcruntime140_app
Passing -lucrt* to the clang driver inhibits the implicit default -lmsvcrt, so this ends up only using libucrtapp.a instead of libucrt.a. This still requires that the default crt was ucrt, as the prebuilt libc++.a needs to have been built for the right crt.
This commit is contained in:
1 parent
da9b3b472b
commit
68b9eb60fa
3 files changed
+7
-5
No files matched your search
@@ -34,7 +34,7 @@ esac
|
||||
FLAGS="-m $M"
|
||||
case $TARGET_OS in
|
||||
mingw32uwp)
|
||||
FLAGS="$FLAGS -lwindowsapp -lvcruntime140_app"
|
||||
FLAGS="$FLAGS -lwindowsapp -lucrtapp"
|
||||
;;
|
||||
esac
|
||||
ld.lld $FLAGS "$@"
|
||||
Reference in new issue
Block a user