[libcxx-commits] [PATCH] D154698: [libcxx] For no-rtti flags, check MSVC value directly

David Spickett via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 7 02:56:45 PDT 2023


DavidSpickett created this revision.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Instead of using LIBCXX_TARGETING...


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154698

Files:
  libcxx/CMakeLists.txt


Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154698.538050.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230707/1b6a5ff5/attachment.bin>


More information about the libcxx-commits mailing list