]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
tests : do not build test-vec1 on systems without avx (#573)
authorslaren <redacted>
Wed, 11 Oct 2023 18:52:43 +0000 (20:52 +0200)
committerGitHub <redacted>
Wed, 11 Oct 2023 18:52:43 +0000 (21:52 +0300)
tests/CMakeLists.txt

index a1cedf0f8d738b75a8890fe107cfa9c5a2c9b156..35e8e674c59b7ef5f25a57f12ebabb5f1cfa1159 100644 (file)
@@ -159,7 +159,7 @@ target_link_libraries(${TEST_TARGET} PRIVATE ggml)
 
 #
 # test-vec1 (x86)
-if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86")
+if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86" AND ${CMAKE_C_FLAGS} MATCHES "avx")
     set(TEST_TARGET test-vec1)
     add_executable(${TEST_TARGET} ${TEST_TARGET}.c)
     target_link_libraries(${TEST_TARGET} PRIVATE ggml)