Add debug info if Rust code is compiled with debug assertions
This commit is contained in:
parent
2c0d6404b7
commit
fdf5ded360
1 changed files with 4 additions and 0 deletions
|
|
@ -138,6 +138,10 @@ fn main() {
|
||||||
config.define("WHISPER_METAL", "OFF");
|
config.define("WHISPER_METAL", "OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg!(debug_assertions) {
|
||||||
|
config.define("CMAKE_BUILD_TYPE", "Debug");
|
||||||
|
}
|
||||||
|
|
||||||
let destination = config.build();
|
let destination = config.build();
|
||||||
|
|
||||||
if env::var("TARGET").unwrap().contains("window") {
|
if env::var("TARGET").unwrap().contains("window") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue