Disable avx2 for android

This commit is contained in:
momo5502
2025-04-12 08:54:18 +02:00
parent 35092b9cdf
commit fb644b8bf1

View File

@@ -115,7 +115,7 @@ endif()
##########################################
if(MOMO_ENABLE_AVX2)
if(MOMO_ENABLE_AVX2 AND NOT (CMAKE_SYSTEM_NAME STREQUAL "Android"))
set(CMAKE_REQUIRED_FLAGS -Werror)
check_cxx_compiler_flag(-mavx2 COMPILER_SUPPORTS_MAVX2)
set(CMAKE_REQUIRED_FLAGS "")