Add debug info if Rust code is compiled with debug assertions

This commit is contained in:
Niko 2023-12-15 16:15:12 -07:00
parent 2c0d6404b7
commit fdf5ded360
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B

View file

@ -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") {