diff --git a/libcxx/CMakeLists.txt b/libcxx/CMakeLists.txt --- a/libcxx/CMakeLists.txt +++ b/libcxx/CMakeLists.txt @@ -569,7 +569,7 @@ # RTTI flags ================================================================== function(cxx_add_rtti_flags target) if (NOT LIBCXX_ENABLE_RTTI) - if (LIBCXX_TARGETING_CLANG_CL OR LIBCXX_TARGETING_MSVC) + if (MSVC) target_add_compile_flags_if_supported(${target} PUBLIC -GR-) else() target_add_compile_flags_if_supported(${target} PUBLIC -fno-rtti)