mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-11 13:30:35 +00:00
a way to process CMAKE_OSX_ARCHITECTURES as a list
This commit is contained in:
parent
4db04784f9
commit
a0bd8f0343
@ -1061,6 +1061,11 @@ if (NOT MSVC)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
list(LENGTH CMAKE_OSX_ARCHITECTURES OSX_ARCHITECTURES_LENGTH)
|
||||
if (OSX_ARCHITECTURES_LENGTH GREATER 1)
|
||||
message(FATAL_ERROR "There's no support for multiple architectures with CMAKE_OSX_ARCHITECTURES.\nPlease use 'lipo -create ...' to create a universal library/binary.")
|
||||
endif()
|
||||
|
||||
set(ARCH_FLAGS "")
|
||||
|
||||
if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR
|
||||
|
Loading…
Reference in New Issue
Block a user