Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ pub struct SystemInfo {
pub avx2: bool,
pub fma: bool,
pub f16c: bool,
pub blas: bool,
pub cuda: bool,
}

impl Default for SystemInfo {
Expand All @@ -117,8 +115,6 @@ impl Default for SystemInfo {
avx2: whisper_rs_sys::ggml_cpu_has_avx2() != 0,
fma: whisper_rs_sys::ggml_cpu_has_fma() != 0,
f16c: whisper_rs_sys::ggml_cpu_has_f16c() != 0,
blas: whisper_rs_sys::ggml_cpu_has_blas() != 0,
cuda: whisper_rs_sys::ggml_cpu_has_cuda() != 0,
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,18 @@ fn main() {
println!("cargo:rustc-link-search=native={}", destination.display());
println!("cargo:rustc-link-lib=static=whisper");
println!("cargo:rustc-link-lib=static=ggml");
println!("cargo:rustc-link-lib=static=ggml-base");
println!("cargo:rustc-link-lib=static=ggml-cpu");
if cfg!(target_os = "macos") {
println!("cargo:rustc-link-lib=static=ggml-blas");
}
if cfg!(feature = "vulkan") {
println!("cargo:rustc-link-lib=static=ggml-vulkan");
}

if cfg!(feature = "metal") {
println!("cargo:rustc-link-lib=static=ggml-metal");
}

println!(
"cargo:WHISPER_CPP_VERSION={}",
Expand Down
2 changes: 1 addition & 1 deletion sys/whisper.cpp