Fix arm detection on macos

This commit is contained in:
2024-11-19 13:24:13 -08:00
parent ce23d3995c
commit 80f0697e79

View File

@@ -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)