mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-22 20:54:27 +08:00
mdbx: use -fno-semantic-interposition
.
This commit is contained in:
@@ -227,6 +227,7 @@ else()
|
||||
check_compiler_flag("-Wextra" CC_HAS_WEXTRA)
|
||||
check_compiler_flag("-Werror" CC_HAS_WERROR)
|
||||
check_compiler_flag("-fexceptions" CC_HAS_FEXCEPTIONS)
|
||||
check_compiler_flag("-fno-semantic-interposition" CC_HAS_FNO_SEMANTIC_INTERPOSITION)
|
||||
if(CMAKE_CXX_COMPILER_LOADED)
|
||||
check_cxx_compiler_flag("-fcxx-exceptions" CC_HAS_FCXX_EXCEPTIONS)
|
||||
endif()
|
||||
@@ -555,6 +556,9 @@ macro(setup_compile_flags)
|
||||
if(CC_HAS_FCXX_EXCEPTIONS)
|
||||
add_compile_flags("CXX" "-fcxx-exceptions" "-frtti")
|
||||
endif()
|
||||
if(CC_HAS_FNO_SEMANTIC_INTERPOSITION)
|
||||
add_compile_flags("C;CXX" "-fno-semantic-interposition")
|
||||
endif()
|
||||
if(MSVC)
|
||||
# checks for /EHa or /clr options exists,
|
||||
# i.e. is enabled structured async WinNT exceptions
|
||||
|
Reference in New Issue
Block a user