Skip to content

Commit

Permalink
Add debug info if Rust code is compiled with debug assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Dec 15, 2023
1 parent 2c0d640 commit fdf5ded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ fn main() {
config.define("WHISPER_METAL", "OFF");
}

if cfg!(debug_assertions) {
config.define("CMAKE_BUILD_TYPE", "Debug");
}

let destination = config.build();

if env::var("TARGET").unwrap().contains("window") {
Expand Down

0 comments on commit fdf5ded

Please sign in to comment.