Issue |
129881
|
Summary |
clang,windows: why doesn't -fms-runtime-lib=dll implicitly pass -Wl,/NODEFAULTLIB:libcmt?
|
Labels |
clang
|
Assignees |
|
Reporter |
AlexRouSg
|
While trying to build a project that uses msvc built glfw which uses the dll runtime,
there are linker errors relating to conflicting runtimes. So the obvious thing to do would be to add `/MD` or the clang eq of `-fms-runtime-lib=dll`.
But apparently that doesn't set `-Wl,/NODEFAULTLIB:libcmt` which was not obvious was the problem as the error only ever say
> LINK : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
So seems rather odd to have to say "use the dll runtime" and "don't use the static runtime" at the same time and wonder if there is a situation where someone would want that or is it something that could be implicitly set?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs