Skip to content

Commit

Permalink
Merge branch 'master' into feat/new-segment-callback
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed May 28, 2024
2 parents c674b7e + 9e07fba commit 279bdcd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ fn main() {
config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo");
}

// Allow passing any WHISPER cmake flag
for (key, value) in env::vars() {
if key.starts_with("WHISPER_") && key != "WHISPER_DONT_GENERATE_BINDINGS" {
config.define(&key, &value);
}
}

let destination = config.build();

if target.contains("window") && !target.contains("gnu") {
Expand Down

0 comments on commit 279bdcd

Please sign in to comment.