r298670 - [XRay] Do not depend on C++ stdlib for XRay builds

Dean Michael Berris via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 23 17:20:06 PDT 2017


Author: dberris
Date: Thu Mar 23 19:20:05 2017
New Revision: 298670

URL: http://llvm.org/viewvc/llvm-project?rev=298670&view=rev
Log:
[XRay] Do not depend on C++ stdlib for XRay builds

Summary:
Now that XRay doesn't require a runtime dependency on a C++ standard
library, we remove that dependency from the clang linker flags.

Reviewers: saugustine, pelikan

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D31313

Modified:
    cfe/trunk/lib/Driver/ToolChains/Gnu.cpp

Modified: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Gnu.cpp?rev=298670&r1=298669&r2=298670&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Gnu.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Gnu.cpp Thu Mar 23 19:20:05 2017
@@ -348,8 +348,6 @@ static void linkXRayRuntimeDeps(const To
   CmdArgs.push_back("-lm");
   CmdArgs.push_back("-latomic");
 
-  TC.AddCXXStdlibLibArgs(Args, CmdArgs);
-
   if (TC.getTriple().getOS() != llvm::Triple::FreeBSD)
     CmdArgs.push_back("-ldl");
 }




More information about the cfe-commits mailing list