From 7347230c8663fd767fe38ef0a572b12deb8885fa Mon Sep 17 00:00:00 2001 From: Isaac McFadyen Date: Thu, 10 Apr 2025 13:24:19 -0400 Subject: [PATCH 1/2] fix: fixed feature flags in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb16a90..913c434 100644 --- a/README.md +++ b/README.md @@ -75,8 +75,8 @@ All disabled by default unless otherwise specified. * `openblas`: enable OpenBLAS support. * `metal`: enable Metal support. Implicitly enables hidden GPU flag at runtime. * `vulkan`: enable Vulkan support. Implicitly enables hidden GPU flag at runtime. -* `whisper-cpp-log`: allows hooking into whisper.cpp's log output and sending it to the `log` backend. Requires calling -* `whisper-cpp-tracing`: allows hooking into whisper.cpp's log output and sending it to the `tracing` backend. +* `log_backend`: allows hooking into whisper.cpp's log output and sending it to the `log` backend. Requires calling +* `tracing_backend`: allows hooking into whisper.cpp's log output and sending it to the `tracing` backend. ## Building From 8de132b23e529767e3db0c7d8a0ecfe9165243f5 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 24 Apr 2025 22:39:30 +0200 Subject: [PATCH 2/2] 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)