diff options
author | Petr Hosek <phosek@chromium.org> | 2019-02-12 01:35:29 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-02-12 01:35:29 +0000 |
commit | f759756c126dcf3f24f7636cf071a4db0f574186 (patch) | |
tree | 03f96a187683818976a3bdfd5aa18f20612bee36 | |
parent | e88eb48b17e9c0d8cb5d1b1390a325db3c338ded (diff) | |
download | libcxx-f759756c126dcf3f24f7636cf071a4db0f574186.tar.gz |
[CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt
We build libc++ and libc++abi with -nodefaultlibs, so -rtlib=compiler-rt
has no effect and results in an 'argument unused during compilation'
warning which breaks the build when using -Werror. We can therefore drop
-rtlib=compiler-rt without any functional change; note that the actual
compiler-rt linking is handled by HandleCompilerRT.
Differential Revision: https://reviews.llvm.org/D58084
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@353786 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5567e82a2..0be001503 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -485,10 +485,6 @@ endif() # Configure compiler. include(config-ix) -if (LIBCXX_USE_COMPILER_RT) - list(APPEND LIBCXX_LINK_FLAGS "-rtlib=compiler-rt") -endif() - # Configure coverage options. if (LIBCXX_GENERATE_COVERAGE) include(CodeCoverage) |