mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-26 20:00:32 +00:00
13 lines
402 B
Rust
13 lines
402 B
Rust
fn main() {
|
|
// Allow building QA tests in CI in debug mode
|
|
println!("cargo:rustc-check-cfg=cfg(is_not_release)");
|
|
println!("cargo:rerun-if-env-changed=CI");
|
|
if std::env::var("CI").is_err() {
|
|
if let Ok(level) = std::env::var("OPT_LEVEL") {
|
|
if level == "0" || level == "1" {
|
|
println!("cargo::rustc-cfg=is_not_release");
|
|
}
|
|
}
|
|
}
|
|
}
|