gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

Don't use CXXFLAGS when compiling eh_trampoline.cc #288

Closed qmfrederik closed 2 months ago

qmfrederik commented 3 months ago

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 (365e53632e8be41e49f21ee47a63e41be424a237) Related to #183 Fixes #177

qmfrederik commented 3 months ago

The context here is that compilation currently fails when trying to build a .rpm package for RedHat; I assume that process sets additional CXX_FLAGS which mess with the custom command which generates eh_trampoline.S.

Looking at #183, I'm not sure if we need to re-introduce CMAKE_CXX_FLAGS in EH_PERSONALITY_FLAGS when CMAKE_CXX_COMPILER_TARGET is set?