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:
Hans Wennborg 2013-08-09 17:38:42 +00:00
parent fd07c604a9
commit 32e3b720b4
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}