fix docs.rs build

This commit is contained in:
0/0 2022-10-10 17:44:02 -06:00
parent a6bf321765
commit 9f84460cde
No known key found for this signature in database
GPG key ID: DE8D5010C0AAA3DC

View file

@ -32,6 +32,11 @@ fn main() {
}
}
// stop if we're on docs.rs
if env::var("DOCS_RS").is_ok() {
return;
}
// build libwhisper.a
env::set_current_dir("whisper.cpp").expect("Unable to change directory");
let code = std::process::Command::new("make")