[libcxx-commits] [PATCH] D154582: [libcxx] Only add -GR- option to MSVC or clang-cl builds
David Spickett via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 6 07:47:11 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG36df92dcd919: [libcxx] Only add -GR- option to MSVC or clang-cl builds (authored by DavidSpickett).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154582/new/
https://reviews.llvm.org/D154582
Files:
libcxx/CMakeLists.txt
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -569,8 +569,11 @@
# RTTI flags ==================================================================
function(cxx_add_rtti_flags target)
if (NOT LIBCXX_ENABLE_RTTI)
- target_add_compile_flags_if_supported(${target} PUBLIC -GR-)
- target_add_compile_flags_if_supported(${target} PUBLIC -fno-rtti)
+ if (LIBCXX_TARGETING_CLANG_CL OR LIBCXX_TARGETING_MSVC)
+ target_add_compile_flags_if_supported(${target} PUBLIC -GR-)
+ else()
+ target_add_compile_flags_if_supported(${target} PUBLIC -fno-rtti)
+ endif()
endif()
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154582.537727.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230706/7534ef92/attachment.bin>
More information about the libcxx-commits
mailing list