Fix arm detection on macos
This commit is contained in:
@@ -69,7 +69,8 @@ if(HAS_FULL_RELRO)
|
|||||||
endif()
|
endif()
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
|
if(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL
|
||||||
|
arm64)
|
||||||
add_compile_options(-mbranch-protection=standard)
|
add_compile_options(-mbranch-protection=standard)
|
||||||
else()
|
else()
|
||||||
add_compile_options(-fcf-protection)
|
add_compile_options(-fcf-protection)
|
||||||
|
Reference in New Issue
Block a user