diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -485,10 +485,6 @@ # 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) diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt --- a/libcxxabi/CMakeLists.txt +++ b/libcxxabi/CMakeLists.txt @@ -262,10 +262,6 @@ string(REPLACE "-stdlib=libstdc++" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endif() -if (LIBCXXABI_USE_COMPILER_RT) - list(APPEND LIBCXXABI_LINK_FLAGS "-rtlib=compiler-rt") -endif() - # Let the library headers know they are currently being used to build the # library. add_definitions(-D_LIBCXXABI_BUILDING_LIBRARY)