From 61ae77bf906156f59ca9a43fd0839f6b7ad21b09 Mon Sep 17 00:00:00 2001 From: Travis Tilley Date: Tue, 14 Apr 2015 21:30:48 -0400 Subject: testing/llvm: added package for llvm 3.6.0 --- ...ng-3.6-remove-lgcc-when-using-compiler-rt.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/llvm/clang-3.6-remove-lgcc-when-using-compiler-rt.patch (limited to 'testing/llvm/clang-3.6-remove-lgcc-when-using-compiler-rt.patch') diff --git a/testing/llvm/clang-3.6-remove-lgcc-when-using-compiler-rt.patch b/testing/llvm/clang-3.6-remove-lgcc-when-using-compiler-rt.patch new file mode 100644 index 0000000000..15cfe2f8ae --- /dev/null +++ b/testing/llvm/clang-3.6-remove-lgcc-when-using-compiler-rt.patch @@ -0,0 +1,29 @@ +diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp +index 75eef9e..08e4439 100644 +--- a/lib/Driver/Tools.cpp ++++ b/lib/Driver/Tools.cpp +@@ -2154,18 +2154,18 @@ static SmallString<128> getCompilerRT(const ToolChain &TC, StringRef Component, + // FIXME: Make sure we can also emit shared objects if they're requested + // and available, check for possible errors, etc. + 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, + ArgStringList &CmdArgs) { + if (!(Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs, + false) || -- cgit v1.2.3