fix: link metal

This commit is contained in:
thewh1teagle 2024-11-27 18:53:39 +02:00
parent 783a7858db
commit 029c1c424b
No known key found for this signature in database

View file

@ -257,6 +257,10 @@ fn main() {
println!("cargo:rustc-link-lib=static=ggml-cpu"); println!("cargo:rustc-link-lib=static=ggml-cpu");
println!("cargo:rustc-link-lib=static=ggml-blas"); println!("cargo:rustc-link-lib=static=ggml-blas");
if cfg!(feature = "metal") {
println!("cargo:rustc-link-lib=static=ggml-metal");
}
println!( println!(
"cargo:WHISPER_CPP_VERSION={}", "cargo:WHISPER_CPP_VERSION={}",
get_whisper_cpp_version(&whisper_root) get_whisper_cpp_version(&whisper_root)