[build2] Using build2 with clang 6 (trunk) on windows
Boris Kolpackov
boris at codesynthesis.com
Fri Dec 8 17:18:30 UTC 2017
Username I Wanted Was Already Taken <usernameiwantedwasalreadytaken at gmail.com> writes:
> [...] -defaultlib:libcmt
Ok, that's the missing piece. I've fixed and staged the new version,
can you give it a try?
If it works, just for interest's sake can you try the shared runtime
build:
b config.cc.poptions=-D_DLL ^
config.cc.coptions=-nostdlib ^
config.cc.loptions=/DEFAULTLIB:msvcrt.lib
The idea taken from here:
https://stackoverflow.com/questions/41850296/link-dynamic-c-runtime-with-clang-windows
> By the way, those "locally defined symbol" warnings are referenced here:
> https://stackoverflow.com/questions/42545078/clang-version-5-and-lnk4217-warning
That looks like Clang's issue (if that option is the correct fix then
Clang should be adding it by default). You may want to submit a bug
report at bugs.llvm.org.
Thanks,
Boris
More information about the users
mailing list