Support setting default value for -rtlib at build time
This patch introduces a new cmake variable: CLANG_DEFAULT_RTLIB, thru which we can specify a default value for -rtlib (libgcc or compiler-rt) at build time, just like how we set the default C++ stdlib thru CLANG_DEFAULT_CXX_STDLIB. With these two options, we can configure clang to build binaries on Linux that have no runtime dependence on any gcc libs (libstdc++ or libgcc_s). Patch by Lei Zhang! Differential Revision: https://reviews.llvm.org/D22663 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276848 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- CMakeLists.txt 13 additions, 2 deletionsCMakeLists.txt
- include/clang/Config/config.h.cmake 3 additions, 0 deletionsinclude/clang/Config/config.h.cmake
- lib/Driver/ToolChain.cpp 13 additions, 9 deletionslib/Driver/ToolChain.cpp
- lib/Driver/ToolChains.cpp 14 additions, 9 deletionslib/Driver/ToolChains.cpp
- lib/Driver/ToolChains.h 2 additions, 0 deletionslib/Driver/ToolChains.h
- test/Driver/linux-ld.c 38 additions, 38 deletionstest/Driver/linux-ld.c
- test/Driver/miamcu-opt.c 7 additions, 7 deletionstest/Driver/miamcu-opt.c
- test/Driver/miamcu-opt.cpp 1 addition, 1 deletiontest/Driver/miamcu-opt.cpp
- test/Driver/mingw-libgcc.c 12 additions, 12 deletionstest/Driver/mingw-libgcc.c
- test/Driver/mingw.cpp 7 additions, 7 deletionstest/Driver/mingw.cpp
- test/Driver/mips-mti-linux.c 2 additions, 2 deletionstest/Driver/mips-mti-linux.c
- test/Driver/sanitizer-ld.c 1 addition, 1 deletiontest/Driver/sanitizer-ld.c
- test/Driver/windows-cross.c 1 addition, 1 deletiontest/Driver/windows-cross.c
- test/OpenMP/linking.c 10 additions, 8 deletionstest/OpenMP/linking.c
Loading
Please register or sign in to comment