mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-07-21 02:05:35 +00:00
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:
co-authored by
Iwan Kawrakow
parent
1fddd12ba8
commit
a5b130389b
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user