From 8de132b23e529767e3db0c7d8a0ecfe9165243f5 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 24 Apr 2025 22:39:30 +0200 Subject: [PATCH] fix: static link `ggml-blas` if openblas feature is enabled --- sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index bd3b0da..5db8a88 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -280,6 +280,10 @@ fn main() { println!("cargo:rustc-link-lib=static=ggml-cuda"); } + if cfg!(feature = "openblas") { + println!("cargo:rustc-link-lib=static=ggml-blas"); + } + println!( "cargo:WHISPER_CPP_VERSION={}", get_whisper_cpp_version(&whisper_root)