From 5ab70241de27278273b2bbc8e9a755b177332ee3 Mon Sep 17 00:00:00 2001 From: Mineplay Date: Thu, 16 Oct 2025 11:17:38 -0500 Subject: [PATCH] fix(android build): made cmake file work with none simd processors --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 499bee9..2dcbf97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,8 +16,10 @@ target_link_libraries(HallocyTest Hallocy) if (MSVC) target_compile_options(Hallocy PRIVATE /W4 /Zl) else() - target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl) - target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl) + if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") + target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl) + target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl) + endif() target_compile_options(Hallocy PRIVATE -march=native) target_compile_options(HallocyTest PRIVATE -march=native)