mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Fixed -fno-semantic-interposition warning with apple-clang
This commit is contained in:
@@ -212,9 +212,12 @@ if (NOT ASMJIT_NO_CUSTOM_FLAGS)
|
|||||||
list(APPEND ASMJIT_PRIVATE_CFLAGS -fno-math-errno)
|
list(APPEND ASMJIT_PRIVATE_CFLAGS -fno-math-errno)
|
||||||
list(APPEND ASMJIT_PRIVATE_CFLAGS_REL -O2)
|
list(APPEND ASMJIT_PRIVATE_CFLAGS_REL -O2)
|
||||||
|
|
||||||
asmjit_detect_cflags(ASMJIT_PRIVATE_CFLAGS
|
# -fno-semantic-interposition is not available on apple - the compiler issues a warning, which is not detected.
|
||||||
-fno-threadsafe-statics
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
|
||||||
-fno-semantic-interposition)
|
asmjit_detect_cflags(ASMJIT_PRIVATE_CFLAGS -fno-threadsafe-statics)
|
||||||
|
else()
|
||||||
|
asmjit_detect_cflags(ASMJIT_PRIVATE_CFLAGS -fno-threadsafe-statics -fno-semantic-interposition)
|
||||||
|
endif()
|
||||||
|
|
||||||
# The following flags can save few bytes in the resulting binary.
|
# The following flags can save few bytes in the resulting binary.
|
||||||
asmjit_detect_cflags(ASMJIT_PRIVATE_CFLAGS_REL
|
asmjit_detect_cflags(ASMJIT_PRIVATE_CFLAGS_REL
|
||||||
|
|||||||
Reference in New Issue
Block a user