fix: add -march=native for ARM64 Linux builds to enable DOTPROD (#2094)

This commit is contained in:
Lorenzo Vasile
2026-07-07 16:39:55 +02:00
committed by GitHub
parent 6c5f047a7c
commit da415658d3
+3
View File
@@ -1258,6 +1258,9 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
if (GGML_SVE)
list(APPEND ARCH_FLAGS -march=armv8.6-a+sve)
endif()
if (GGML_NATIVE)
list(APPEND ARCH_FLAGS -march=native)
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# else we fail on Gravitons and such
list(APPEND ARCH_FLAGS -flax-vector-conversions)