Add forgotten check

This commit is contained in:
Iwan Kawrakow
2026-07-15 13:51:39 +03:00
parent 3740891175
commit 1e5795167f
+3 -1
View File
@@ -1102,7 +1102,9 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# else we fail on Gravitons and such
list(APPEND ARCH_FLAGS -march=native)
if (GGML_NATIVE)
list(APPEND ARCH_FLAGS -march=native)
endif()
list(APPEND ARCH_FLAGS -flax-vector-conversions)
endif()
endif()