diff options
| author | Renato Golin <renato.golin@linaro.org> | 2015-07-23 17:24:41 +0000 |
|---|---|---|
| committer | Renato Golin <renato.golin@linaro.org> | 2015-07-23 17:24:41 +0000 |
| commit | 830f0c4c46040c6982f4d4d392216e210b5f196f (patch) | |
| tree | bac826c87f8150f21fa0810433ed82693a19531e /clang/lib/Driver | |
| parent | 338b42c32915d0a1e0f5bfa73a2460eabf1050cf (diff) | |
| download | bcm5719-llvm-830f0c4c46040c6982f4d4d392216e210b5f196f.tar.gz bcm5719-llvm-830f0c4c46040c6982f4d4d392216e210b5f196f.zip | |
[Compiler-RT] Remove dependency on libgcc_s/eh
Currently, for --rtlib=compiler-rt on GNU systems, we're assuming
that one has libgcc_s and libgcc_eh as low-level libraries, which
when used in conjunction with -lunwind or -lc++abi, breaks that
assumption.
My original fix was wrong, and this patch reverts it to prepare for
a new flag to choose the unwinder/C++ libraries. For the time being,
people can use "-lgcc_s -lgcc_eh" or "-lunwind -lc++abi" or any
combination they need explicitly.
llvm-svn: 243025
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 2696596f6db..6bab65a1115 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2293,13 +2293,6 @@ SmallString<128> tools::getCompilerRT(const ToolChain &TC, StringRef Component, 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"); - } } static void addProfileRT(const ToolChain &TC, const ArgList &Args, |

