mirror of
https://github.com/ollama/ollama.git
synced 2026-10-24 04:21:28 +00:00
xgrammar: add standalone CMake project for native library (#18611)
Move the ollama_xgrammar target into mlxrunner/xgrammar/native so it can be configured on its own against an installed xgrammar. cmake/mlx now adds it as a subdirectory and still uses the pinned xgrammar.
This commit is contained in:
parent
c173758997
commit
b9cd4b1efb
4 changed files with 118 additions and 14 deletions
2
.github/scripts/prepare_mlx_darwin.sh
vendored
2
.github/scripts/prepare_mlx_darwin.sh
vendored
|
|
@ -52,8 +52,6 @@ read_pin() {
|
|||
tr -d '[:space:]' <"$1"
|
||||
}
|
||||
|
||||
# Native wrapper sources compiled into libollama_xgrammar.dylib — keep in
|
||||
# sync with the ollama_xgrammar target in cmake/mlx/CMakeLists.txt.
|
||||
xgrammar_native_dir=mlxrunner/xgrammar/native
|
||||
|
||||
# Payload build rules beyond the MLX_VERSION/MLX_C_VERSION pins.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue