forked from OSchip/llvm-project
clang-cl: Don't pass /defaultlib to the linker
Since r187945, clang-cl will add the runtime library dependency to the .obj file. llvm-svn: 188086
This commit is contained in:
parent
fd07c604a9
commit
32e3b720b4
|
@ -6552,7 +6552,8 @@ void visualstudio::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
}
|
||||
|
||||
if (!Args.hasArg(options::OPT_nostdlib) &&
|
||||
!Args.hasArg(options::OPT_nostartfiles)) {
|
||||
!Args.hasArg(options::OPT_nostartfiles) &&
|
||||
!C.getDriver().IsCLMode()) {
|
||||
CmdArgs.push_back("-defaultlib:libcmt");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue