mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fix arch=native on arm+clang
This commit is contained in:
parent
1b915cfb93
commit
2aa5e1c710
@ -68,8 +68,23 @@ if (USE_CPU_NATIVE)
|
||||
endif()
|
||||
else()
|
||||
if (SIMDE_BACKEND)
|
||||
set(GNUCC_ARCH native)
|
||||
set(TUNE_FLAG native)
|
||||
if (CMAKE_COMPILER_IS_CLANG)
|
||||
if(ARCH_AARCH64)
|
||||
if (CMAKE_C_COMPILER_VERSION VERSION_LESS "15.0")
|
||||
set(GNUCC_ARCH native)
|
||||
set(TUNE_FLAG native)
|
||||
else()
|
||||
set(GNUCC_ARCH armv8-a)
|
||||
set(TUNE_FLAG generic)
|
||||
endif()
|
||||
else()
|
||||
set(GNUCC_ARCH native)
|
||||
set(TUNE_FLAG native)
|
||||
endif()
|
||||
else()
|
||||
set(GNUCC_ARCH native)
|
||||
set(TUNE_FLAG native)
|
||||
endif()
|
||||
elseif (ARCH_IA32 OR ARCH_X86_64)
|
||||
set(GNUCC_ARCH native)
|
||||
set(TUNE_FLAG generic)
|
||||
|
Loading…
x
Reference in New Issue
Block a user