Fix build on macOS (#2137)

* Fix build on macOS

* Add forgotten check

---------

Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
This commit is contained in:
Kawrakow
2026-07-17 14:05:55 +03:00
committed by GitHub
co-authored by Iwan Kawrakow
parent 1fddd12ba8
commit a5b130389b
+3 -3
View File
@@ -1100,11 +1100,11 @@ 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
if (GGML_NATIVE)
list(APPEND ARCH_FLAGS -march=native)
endif()
list(APPEND ARCH_FLAGS -flax-vector-conversions)
endif()
endif()