Output informational message when NO_AVX512 got set

This commit is contained in:
Martin Kroeker 2023-06-18 13:26:54 +02:00 committed by GitHub
parent 59251f4e28
commit 6595719f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ if (NOT NO_AVX512)
execute_process(COMMAND ${CMAKE_C_COMPILER} -march=skylake-avx512 -c -v -o ${PROJECT_BINARY_DIR}/avx512.o ${PROJECT_BINARY_DIR}/avx512.c OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE NO_AVX512)
if (NO_AVX512 EQUAL 1)
set (CCOMMON_OPT "${CCOMMON_OPT} -DNO_AVX512")
message(STATUS "Disabling AVX512 support as your compiler toolchain cannot handle AVX512 instructions.")
endif()
file(REMOVE "avx512.c" "avx512.o")
endif()