r188086 - clang-cl: Don't pass /defaultlib to the linker

Hans Wennborg hans at hanshq.net
Fri Aug 9 10:38:43 PDT 2013


Author: hans
Date: Fri Aug  9 12:38:42 2013
New Revision: 188086

URL: http://llvm.org/viewvc/llvm-project?rev=188086&view=rev
Log:
clang-cl: Don't pass /defaultlib to the linker

Since r187945, clang-cl will add the runtime library dependency to
the .obj file.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=188086&r1=188085&r2=188086&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Aug  9 12:38:42 2013
@@ -6552,7 +6552,8 @@ void visualstudio::Link::ConstructJob(Co
   }
 
   if (!Args.hasArg(options::OPT_nostdlib) &&
-    !Args.hasArg(options::OPT_nostartfiles)) {
+      !Args.hasArg(options::OPT_nostartfiles) &&
+      !C.getDriver().IsCLMode()) {
     CmdArgs.push_back("-defaultlib:libcmt");
   }
 





More information about the cfe-commits mailing list