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

This commit is contained in:
Mineplay 2025-10-16 11:17:38 -05:00
parent 58ba6ee289
commit 5ab70241de

View file

@ -16,8 +16,10 @@ target_link_libraries(HallocyTest Hallocy)
if (MSVC) if (MSVC)
target_compile_options(Hallocy PRIVATE /W4 /Zl) target_compile_options(Hallocy PRIVATE /W4 /Zl)
else() else()
if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl) target_compile_options(Hallocy PRIVATE -mavx512f -mavx512vl)
target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl) target_compile_options(HallocyTest PRIVATE -mavx512f -mavx512vl)
endif()
target_compile_options(Hallocy PRIVATE -march=native) target_compile_options(Hallocy PRIVATE -march=native)
target_compile_options(HallocyTest PRIVATE -march=native) target_compile_options(HallocyTest PRIVATE -march=native)