We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131b234 commit 814cd23Copy full SHA for 814cd23
Modules/private/PhlexOptimization.cmake
@@ -81,10 +81,13 @@ include(CheckCXXCompilerFlag)
81
82
# Probe flag availability once at module-load time (results are cached in the
83
# CMake cache and reused across reconfigures).
84
-check_cxx_compiler_flag("-fno-semantic-interposition" PHLEX_CXX_HAVE_NO_SEMANTIC_INTERPOSITION)
85
86
if(NOT APPLE)
87
check_cxx_compiler_flag("-fno-plt" PHLEX_CXX_HAVE_NO_PLT)
+
88
+ # Apple/Clang accepts -fno-semantic-interposition but the Apple toolchain
89
+ # driver treats it as unused for Mach-O builds.
90
+ check_cxx_compiler_flag("-fno-semantic-interposition" PHLEX_CXX_HAVE_NO_SEMANTIC_INTERPOSITION)
91
endif()
92
93
# ---------------------------------------------------------------------------
0 commit comments