From 029c1c424b4686219d3de56ec35467f218603ba8 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Wed, 27 Nov 2024 18:53:39 +0200 Subject: [PATCH] fix: link metal --- sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index b69f211..a45cb74 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -257,6 +257,10 @@ fn main() { println!("cargo:rustc-link-lib=static=ggml-cpu"); println!("cargo:rustc-link-lib=static=ggml-blas"); + if cfg!(feature = "metal") { + println!("cargo:rustc-link-lib=static=ggml-metal"); + } + println!( "cargo:WHISPER_CPP_VERSION={}", get_whisper_cpp_version(&whisper_root)