Skip to content

Commit a8dd830

Browse files
committed
[cmake] same for -fno-rtti
1 parent 3f917d2 commit a8dd830

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libunwind/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
230230
set(CMAKE_REQUIRED_LINK_OPTIONS)
231231
add_compile_flags_if_supported(-funwind-tables)
232232
add_cxx_compile_flags_if_supported(-fno-exceptions)
233+
add_cxx_compile_flags_if_supported(-fno-rtti)
233234
set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_previous_CMAKE_TRY_COMPILE_TARGET_TYPE})
234235
set(CMAKE_REQUIRED_LINK_OPTIONS ${_previous_CMAKE_REQUIRED_LINK_OPTIONS})
235236

@@ -238,8 +239,6 @@ if (LIBUNWIND_USES_ARM_EHABI AND NOT CXX_SUPPORTS_FUNWIND_TABLES_FLAG)
238239
"because this target uses ARM Exception Handling ABI")
239240
endif()
240241

241-
add_cxx_compile_flags_if_supported(-fno-rtti)
242-
243242
# Ensure that we don't depend on C++ standard library.
244243
if (CXX_SUPPORTS_NOSTDINCXX_FLAG)
245244
list(APPEND LIBUNWIND_COMPILE_FLAGS -nostdinc++)

0 commit comments

Comments
 (0)