When compiling with Clang the __ARM_NEON_SVE_BRIDGE macro is only defined if compiling with -march=...+sve, so add that to the CMAKE_REQUIRED_FLAGS when doing the compile test. --- source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index cd19050c3..04f153ef0 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -357,7 +357,7 @@ int main() { return 0; }") set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) # CMAKE_REQUIRED_FLAGS requires a space-delimited string, whereas # ARM_ARGS is defined and used elsewhere as a ;-list. - foreach(ARM_ARG ${ARM_ARGS}) + foreach(ARM_ARG ${ARM_ARGS} ${ARM64_ARCH_ARGS}) string(APPEND CMAKE_REQUIRED_FLAGS " ${ARM_ARG}") endforeach() check_c_source_compiles("${SVE_HEADER_TEST}" SVE_HEADER_C_TEST_COMPILED) -- 2.37.3 _______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel