mirror of
https://github.com/ollama/ollama.git
synced 2026-05-13 14:27:00 +00:00
cmake: use CMAKE_SYSTEM_PROCESSOR instead of CMAKE_OSX_ARCHITECTURES for mlx.metallib install (#13696)
The CMake condition for installing mlx.metallib checks CMAKE_OSX_ARCHITECTURES, but this variable is only set when explicitly passed - not auto-detected. The arm64 build was missing this flag, causing the metallib to not be installed, which then caused codesign to fail on the unexpanded glob pattern.
This commit is contained in:
parent
af7ea6e96e
commit
dbf47ee55a
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ if(MLX_ENGINE)
|
|||
|
||||
# Install the Metal library for macOS arm64 (must be colocated with the binary)
|
||||
# Metal backend is only built for arm64, not x86_64
|
||||
if(APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "arm64")
|
||||
if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||
install(FILES ${CMAKE_BINARY_DIR}/_deps/mlx-build/mlx/backend/metal/kernels/mlx.metallib
|
||||
DESTINATION ${OLLAMA_INSTALL_DIR}
|
||||
COMPONENT MLX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue