[PATCH] D31313: [XRay] Do not depend on C++ stdlib for XRay builds
dberris created this revision. Now that XRay doesn't require a runtime dependency on a C++ standard library, we remove that dependency from the clang linker flags. https://reviews.llvm.org/D31313 Files: lib/Driver/ToolChains/Gnu.cpp Index: lib/Driver/ToolChains/Gnu.cpp === --- lib/Driver/ToolChains/Gnu.cpp +++ lib/Driver/ToolChains/Gnu.cpp @@ -348,8 +348,6 @@ CmdArgs.push_back("-lm"); CmdArgs.push_back("-latomic"); - TC.AddCXXStdlibLibArgs(Args, CmdArgs); - if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) CmdArgs.push_back("-ldl"); } Index: lib/Driver/ToolChains/Gnu.cpp === --- lib/Driver/ToolChains/Gnu.cpp +++ lib/Driver/ToolChains/Gnu.cpp @@ -348,8 +348,6 @@ CmdArgs.push_back("-lm"); CmdArgs.push_back("-latomic"); - TC.AddCXXStdlibLibArgs(Args, CmdArgs); - if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) CmdArgs.push_back("-ldl"); } ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D31313: [XRay] Do not depend on C++ stdlib for XRay builds
This revision was automatically updated to reflect the committed changes. Closed by commit rL298670: [XRay] Do not depend on C++ stdlib for XRay builds (authored by dberris). Changed prior to commit: https://reviews.llvm.org/D31313?vs=92884&id=92886#toc Repository: rL LLVM https://reviews.llvm.org/D31313 Files: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp Index: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp === --- cfe/trunk/lib/Driver/ToolChains/Gnu.cpp +++ cfe/trunk/lib/Driver/ToolChains/Gnu.cpp @@ -348,8 +348,6 @@ CmdArgs.push_back("-lm"); CmdArgs.push_back("-latomic"); - TC.AddCXXStdlibLibArgs(Args, CmdArgs); - if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) CmdArgs.push_back("-ldl"); } Index: cfe/trunk/lib/Driver/ToolChains/Gnu.cpp === --- cfe/trunk/lib/Driver/ToolChains/Gnu.cpp +++ cfe/trunk/lib/Driver/ToolChains/Gnu.cpp @@ -348,8 +348,6 @@ CmdArgs.push_back("-lm"); CmdArgs.push_back("-latomic"); - TC.AddCXXStdlibLibArgs(Args, CmdArgs); - if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) CmdArgs.push_back("-ldl"); } ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits