mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
parent
35d3ed301c
commit
62994578c2
@ -2,8 +2,11 @@ fn main() {
|
|||||||
// Allow building QA tests in CI in debug mode
|
// Allow building QA tests in CI in debug mode
|
||||||
println!("cargo:rustc-check-cfg=cfg(is_not_release)");
|
println!("cargo:rustc-check-cfg=cfg(is_not_release)");
|
||||||
println!("cargo:rerun-if-env-changed=CI");
|
println!("cargo:rerun-if-env-changed=CI");
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
if std::env::var("CI").is_err() {
|
if std::env::var("CI").is_err() {
|
||||||
println!("cargo::rustc-cfg=is_not_release");
|
if let Ok(level) = std::env::var("OPT_LEVEL") {
|
||||||
|
if level == "0" || level == "1" {
|
||||||
|
println!("cargo::rustc-cfg=is_not_release");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user