fix: static link ggml-blas if openblas feature is enabled

This commit is contained in:
Kaspar Schleiser 2025-04-24 22:39:30 +02:00
parent ddbc7961c5
commit 8de132b23e

View file

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