From 80f0697e799f3a547231300c6c15c9a662a37146 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 19 Nov 2024 13:24:13 -0800 Subject: [PATCH] Fix arm detection on macos --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ea0b71..543601d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,8 @@ if(HAS_FULL_RELRO) endif() 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) else() add_compile_options(-fcf-protection)