File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ include(CheckCXXCompilerFlag)
44message (STATUS "Building for ARM aarch64" )
55
66# Check what compiler flags are supported
7+ CHECK_CXX_COMPILER_FLAG("-march=armv7-a+neon" CXX_ARMV7_NEON)
78CHECK_CXX_COMPILER_FLAG("-march=armv8-a" CXX_ARMV8A)
89CHECK_CXX_COMPILER_FLAG("-march=armv8-a+sve" CXX_SVE)
910CHECK_CXX_COMPILER_FLAG("-march=armv9-a+sve2" CXX_SVE2)
@@ -14,7 +15,7 @@ if(CXX_SVE2)
1415 message (STATUS "Using ARMv9.0-a with SVE2 (supported by CPU)" )
1516 add_compile_definitions (OPT_SVE2)
1617endif ()
17- if (CXX_ARMV8A)
18+ if (CXX_ARMV8A OR CXX_ARMV7_NEON )
1819 add_compile_definitions (OPT_NEON)
1920endif ()
2021if (CXX_SVE)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ foreach(benchmark IN ITEMS ${BENCHMARKS})
2525 target_link_libraries (bm_${benchmark} VectorSimilarity benchmark::benchmark)
2626endforeach ()
2727
28- if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "(aarch64)|(arm64)|(ARM64)|(armv8)|(armv9 )" )
28+ if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "(aarch64)|(arm64)|(ARM64)|(armv.* )" )
2929 message (STATUS "Enabling Arm Performance Libraries integration" )
3030 include (${root} /cmake/aarch64InstructionFlags.cmake)
3131 add_compile_definitions (BENCHMARK_ARCH=arm64)
You can’t perform that action at this time.
0 commit comments