We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0353e62 commit cf8abeeCopy full SHA for cf8abee
1 file changed
Tools/CMake/torque_macros.cmake
@@ -176,7 +176,11 @@ function(add_math_backend name compile_defs)
176
elseif(name STREQUAL "avx2")
177
target_compile_options(math_${name} PRIVATE -mavx2 -mfma)
178
elseif(name STREQUAL "neon")
179
- target_compile_options(math_${name} PRIVATE -march=armv8-a)
+ include(CheckCXXCompilerFlag)
180
+ check_cxx_compiler_flag("-march=armv8-a" HAS_ARMV8_FLAG)
181
+ if(HAS_ARMV8_FLAG)
182
+ target_compile_options(math_${name} PRIVATE -march=armv8-a)
183
+ endif()
184
endif()
185
186
0 commit comments