From a5b130389b2c262f81a74ef21cdef5cadad1a4e8 Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Fri, 17 Jul 2026 14:05:55 +0300 Subject: [PATCH] Fix build on macOS (#2137) * Fix build on macOS * Add forgotten check --------- Co-authored-by: Iwan Kawrakow --- ggml/src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 48848e4c6..a128c0c06 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -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()