fix(android build): made cmake file work with neon processors

This commit is contained in:
Mineplay 2025-10-16 11:43:29 -05:00
parent 5ab70241de
commit 19544228f2

View file

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