A high-performance inference engine for AI models
tools: install cmake in setup for the grammar feature (#475)
Dmitry Barakhov607ebac2841f
diff --git a/crates/cli-tools/src/main.rs b/crates/cli-tools/src/main.rsindex ba4912871..b9c782cbc 100644--- a/crates/cli-tools/src/main.rs+++ b/crates/cli-tools/src/main.rs@@ -69,6 +69,7 @@ fn run_setup(include_platform_specific: bool) -> Result<()> {if cfg!(target_vendor = "apple") {Command::xcodebuild_first_launch().run()?;Command::xcodebuild_download_metal_toolchain().run()?;+ Command::cmake_setup().run()?;}}diff --git a/crates/cli-tools/src/types/command.rs b/crates/cli-tools/src/types/command.rsindex 1672f3c47..1a74d1072 100644--- a/crates/cli-tools/src/types/command.rs+++ b/crates/cli-tools/src/types/command.rs@@ -409,6 +409,10 @@ impl Command {Self::xcodebuild().with_arguments(vec!["-downloadComponent".to_string(), "MetalToolchain".to_string()])}+ pub fn cmake_setup() -> Self {+ Self::new("sh").with_argument("-c").with_argument("cmake --version >/dev/null 2>&1 || brew install cmake")+ }+pub fn xcodebuild_create_xcframework(slice_libraries_with_headers_paths: Vec<(PathBuf, PathBuf)>,output_path: PathBuf,