Commit ecfe6be
committed
CMakeLists: include AppleClang in the precompile-header workaround gate
`CMAKE_CXX_COMPILER_ID STREQUAL "Clang"` only matches upstream LLVM
clang -- AppleClang's compiler id is "AppleClang", so the precompile
header that pulls in `clang.hpp` was never being applied to
fastmcpp_core's own translation units under AppleClang.
Since fastmcpp_core is a STATIC library, its .o files (compiled
without the workaround) get linked into consumer dylibs. That brought
the unguarded `__from_native_exception_pointer` reference into
downstream binaries built with AppleClang regardless of what
clang.hpp did in the consumer's own sources.
Switch the gate to `MATCHES "^(Apple)?Clang$"` so both compiler ids
qualify.1 parent 7e266a6 commit ecfe6be
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
0 commit comments