From: Hans Wennborg Date: Fri, 9 Aug 2013 17:38:42 +0000 (+0000) Subject: clang-cl: Don't pass /defaultlib to the linker X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=746974d52791c6394a0ca16f13c3b32f9129f12a;p=clang clang-cl: Don't pass /defaultlib to the linker Since r187945, clang-cl will add the runtime library dependency to the .obj file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188086 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 69b6378b45..2953612f64 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); }