Merge pull request #201 from hyiip/master
link cuda when cuda feature is on
This commit is contained in:
commit
37cba931f6
1 changed files with 4 additions and 0 deletions
|
|
@ -266,6 +266,10 @@ fn main() {
|
|||
println!("cargo:rustc-link-lib=static=ggml-metal");
|
||||
}
|
||||
|
||||
if cfg!(feature = "cuda") {
|
||||
println!("cargo:rustc-link-lib=static=ggml-cuda");
|
||||
}
|
||||
|
||||
println!(
|
||||
"cargo:WHISPER_CPP_VERSION={}",
|
||||
get_whisper_cpp_version(&whisper_root)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue