File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,10 @@ set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
233233add_compile_flags_if_supported(-funwind-tables)
234234set (CMAKE_TRY_COMPILE_TARGET_TYPE ${_previous_CMAKE_TRY_COMPILE_TARGET_TYPE} )
235235
236- # if (LIBUNWIND_USES_ARM_EHABI AND NOT CXX_SUPPORTS_FUNWIND_TABLES_FLAG)
237- # message(SEND_ERROR "The -funwind-tables flag must be supported "
238- # "because this target uses ARM Exception Handling ABI")
239- # endif()
236+ if (LIBUNWIND_USES_ARM_EHABI AND NOT CXX_SUPPORTS_FUNWIND_TABLES_FLAG)
237+ message (SEND_ERROR "The -funwind-tables flag must be supported "
238+ "because this target uses ARM Exception Handling ABI" )
239+ endif ()
240240
241241add_cxx_compile_flags_if_supported(-fno-exceptions)
242242add_cxx_compile_flags_if_supported(-fno-rtti)
Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ add_link_flags_if(CXX_SUPPORTS_UNWINDLIB_EQ_NONE_FLAG --unwindlib=none)
9696# MINGW_LIBRARIES is defined in config-ix.cmake
9797add_library_flags_if(MINGW "${MINGW_LIBRARIES} " )
9898
99- # if (LIBUNWIND_ENABLE_SHARED AND
100- # NOT (CXX_SUPPORTS_FNO_EXCEPTIONS_FLAG AND
101- # CXX_SUPPORTS_FUNWIND_TABLES_FLAG))
102- # message(FATAL_ERROR
103- # "Compiler doesn't support generation of unwind tables if exception "
104- # "support is disabled. Building libunwind DSO with runtime dependency "
105- # "on C++ ABI library is not supported.")
106- # endif()
99+ if (LIBUNWIND_ENABLE_SHARED AND
100+ NOT (CXX_SUPPORTS_FNO_EXCEPTIONS_FLAG AND
101+ CXX_SUPPORTS_FUNWIND_TABLES_FLAG))
102+ message (FATAL_ERROR
103+ "Compiler doesn't support generation of unwind tables if exception "
104+ "support is disabled. Building libunwind DSO with runtime dependency "
105+ "on C++ ABI library is not supported." )
106+ endif ()
107107
108108if (APPLE )
109109 add_compile_flags("-U__STRICT_ANSI__" )
You can’t perform that action at this time.
0 commit comments