Add compiler flags to disable safetensors and gguf (#1098)

* with docs

* nit
This commit is contained in:
Awni Hannun
2024-05-09 17:39:44 -07:00
committed by GitHub
parent 06375e6605
commit 8b1906abd0
9 changed files with 118 additions and 30 deletions

View File

@@ -17,6 +17,8 @@ option(MLX_BUILD_PYTHON_BINDINGS "Build python bindings for mlx" OFF)
option(MLX_BUILD_METAL "Build metal backend" ON)
option(MLX_METAL_DEBUG "Enhance metal debug workflow" OFF)
option(MLX_ENABLE_X64_MAC "Enable building for x64 macOS" OFF)
option(MLX_BUILD_GGUF "Include support for GGUF format" ON)
option(MLX_BUILD_SAFETENSORS "Include support for safetensors format" ON)
option(BUILD_SHARED_LIBS "Build mlx as a shared library" OFF)
if(NOT MLX_VERSION)