fix(android build): made cmake file work with neon processors
This commit is contained in:
parent
5ab70241de
commit
19544228f2
1 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Reference in a new issue