[libcxx-commits] [libcxx] r353786 - [CMake] Avoid passing -rtlib=compiler-rt when using compiler-rt

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 11 17:35:29 PST 2019


Author: phosek
Date: Mon Feb 11 17:35:29 2019
New Revision: 353786

URL: http://llvm.org/viewvc/llvm-project?rev=353786&view=rev
Log:
[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

Modified:
    libcxx/trunk/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=353786&r1=353785&r2=353786&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Mon Feb 11 17:35:29 2019
@@ -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)




More information about the libcxx-commits mailing list