From 19544228f2f710a96ed3568fc5a48adaf9f21b8e Mon Sep 17 00:00:00 2001 From: Mineplay Date: Thu, 16 Oct 2025 11:43:29 -0500 Subject: [PATCH] fix(android build): made cmake file work with neon processors --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dcbf97..92eeda6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,12 +17,12 @@ if (MSVC) target_compile_options(Hallocy PRIVATE /W4 /Zl) else() if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") - target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl) - target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl) + target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl -march=native) + target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl -march=native) + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm") + target_compile_options(Hallocy PRIVATE -mfpu=neon) + target_compile_options(HallocyTest PRIVATE -mfpu=neon) endif() - - target_compile_options(Hallocy PRIVATE -march=native) - target_compile_options(HallocyTest PRIVATE -march=native) target_compile_options(Hallocy PRIVATE -Wall -Wextra -pedantic) endif() \ No newline at end of file