mlx: fix dev mode search path (#16355)

The superbuild from the llama-server work changed paths but missed updating the MLX library resolution code to match.
This commit is contained in:
Daniel Hiltgen
2026-05-29 16:33:40 -07:00
committed by GitHub
parent 9db4bdbad6
commit 11be8f6ac8
2 changed files with 18 additions and 2 deletions

View File

@@ -368,7 +368,7 @@ function(ollama_add_mlx_build name)
message(FATAL_ERROR "ollama_add_mlx_build(${name}) requires RUNNER_DIR")
endif()
set(_build_dir ${CMAKE_BINARY_DIR}/mlx-${name})
set(_build_dir ${CMAKE_BINARY_DIR}/${ARG_RUNNER_DIR})
ollama_collect_cache_args_with_prefix("MLX_" _mlx_cache_args)
set(_cmake_args
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}