link cuda when cuda feature is on
This commit is contained in:
parent
3c20758cce
commit
3d33a73458
1 changed files with 4 additions and 0 deletions
|
|
@ -266,6 +266,10 @@ fn main() {
|
||||||
println!("cargo:rustc-link-lib=static=ggml-metal");
|
println!("cargo:rustc-link-lib=static=ggml-metal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg!(feature = "cuda") {
|
||||||
|
println!("cargo:rustc-link-lib=static=ggml-cuda");
|
||||||
|
}
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
"cargo:WHISPER_CPP_VERSION={}",
|
"cargo:WHISPER_CPP_VERSION={}",
|
||||||
get_whisper_cpp_version(&whisper_root)
|
get_whisper_cpp_version(&whisper_root)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue