vp-build/srcpkgs/llvm/files/patches/cfe/cfe-008-remove-lgcc-when-using-compiler-rt.patch
2015-05-04 22:56:25 -05:00

24 lines
892 B
Diff

diff --git lib/Driver/Tools.cpp lib/Driver/Tools.cpp
index 5a5cba7..701ac12 100644
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -2157,12 +2157,12 @@ static void addClangRT(const ToolChain &TC, const ArgList &Args,
ArgStringList &CmdArgs) {
CmdArgs.push_back(Args.MakeArgString(getCompilerRT(TC, "builtins")));
- if (!TC.getTriple().isOSWindows()) {
- // FIXME: why do we link against gcc when we are using compiler-rt?
- CmdArgs.push_back("-lgcc_s");
- if (TC.getDriver().CCCIsCXX())
- CmdArgs.push_back("-lgcc_eh");
- }
+ // if (!TC.getTriple().isOSWindows()) {
+ // // FIXME: why do we link against gcc when we are using compiler-rt?
+ // CmdArgs.push_back("-lgcc_s");
+ // if (TC.getDriver().CCCIsCXX())
+ // CmdArgs.push_back("-lgcc_eh");
+ // }
}
static void addProfileRT(const ToolChain &TC, const ArgList &Args,