diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-05-22 21:13:30 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-05-22 21:13:30 +0000 |
commit | 99ee10d2b83ba4000e14fbb5639174260fcdfb1c (patch) | |
tree | db0f306ea0d054f140c970b2908593c88f2978bc /clang/lib/Driver/Tools.cpp | |
parent | 00997e29e58029da7d5e73ade10351da75262b3b (diff) | |
download | bcm5719-llvm-99ee10d2b83ba4000e14fbb5639174260fcdfb1c.tar.gz bcm5719-llvm-99ee10d2b83ba4000e14fbb5639174260fcdfb1c.zip |
Unify the name of compiler-rt builtins library on Linux.
Call it "libclang_rt.builtins-<arch>.a" to be consistent
with sanitizers/profile libraries naming. Modify Makefile
and CMake build systems and Clang driver accordingly.
Fixes PR19822.
llvm-svn: 209474
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index e51cb1b2795..3fe552db822 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1891,14 +1891,15 @@ static SmallString<128> getCompilerRTLibDir(const ToolChain &TC) { return Res; } -// This adds the static libclang_rt.arch.a directly to the command line +// This adds the static libclang_rt.builtins-arch.a directly to the command line // FIXME: Make sure we can also emit shared objects if they're requested // and available, check for possible errors, etc. static void addClangRTLinux( const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) { SmallString<128> LibClangRT = getCompilerRTLibDir(TC); - llvm::sys::path::append(LibClangRT, - Twine("libclang_rt.") + getArchNameForCompilerRTLib(TC) + ".a"); + llvm::sys::path::append(LibClangRT, Twine("libclang_rt.builtins-") + + getArchNameForCompilerRTLib(TC) + + ".a"); CmdArgs.push_back(Args.MakeArgString(LibClangRT)); CmdArgs.push_back("-lgcc_s"); |