Skip to content

Commit

Permalink
Don't use CXXFLAGS when compiling eh_trampoline.cc
Browse files Browse the repository at this point in the history
We don't want the user to override these flags because that file
needs to be compiled in a very specific way.

Re-applies #178 (365e536)
Related to #183
Fixes #177
  • Loading branch information
qmfrederik committed Apr 15, 2024
1 parent 1b95a38 commit 4a0c2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -230,7 +230,7 @@ elseif (MINGW)
message(STATUS "Using MinGW-compatible exception model")
list(APPEND libobjc_CXX_SRCS objcxx_eh.cc objcxx_eh_mingw.cc)
else ()
separate_arguments(EH_PERSONALITY_FLAGS NATIVE_COMMAND ${CMAKE_CXX_FLAGS})
set(EH_PERSONALITY_FLAGS "")
if (CMAKE_CXX_COMPILER_TARGET)
list(APPEND EH_PERSONALITY_FLAGS "${CMAKE_CXX_COMPILE_OPTIONS_TARGET}${CMAKE_CXX_COMPILER_TARGET}")
endif ()
Expand Down

0 comments on commit 4a0c2f1

Please sign in to comment.