Skip to content

Commit

Permalink
Warn if opt-level is 0 or 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Nov 27, 2024
1 parent 7607d76 commit 2009cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use esp_metadata::{Chip, Config};
fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rustc-check-cfg=cfg(is_debug_build)");
if let Ok(level) = std::env::var("OPT_LEVEL") {
if level != "2" && level != "3" {
if level == "0" || level == "1" {
println!("cargo:rustc-cfg=is_debug_build");
}
}
Expand Down

0 comments on commit 2009cec

Please sign in to comment.