Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e168c3a

Browse files
committedApr 29, 2021
Windows: Link against dynamic MSVCRT when linking against shared druntime/Phobos
1 parent c2bfd71 commit e168c3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎driver/linker.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ llvm::StringRef getMscrtLibName(const bool *useInternalToolchain) {
246246
if (useInternal) {
247247
return "vcruntime140";
248248
} else {
249-
// default to static release variant
250-
return linkFullyStatic() != llvm::cl::BOU_FALSE ? "libcmt" : "msvcrt";
249+
return linkAgainstSharedDefaultLibs() ? "msvcrt" : "libcmt";
251250
}
252251
}
253252

0 commit comments

Comments
 (0)
Please sign in to comment.