mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 04:10:28 +00:00
esp-wifi and esp-storage can be used with opt-level=s (#3618)
This commit is contained in:
parent
3893e5665b
commit
7c322ec31c
@ -7,9 +7,9 @@ fn main() -> Result<(), String> {
|
||||
if cfg!(feature = "esp32") {
|
||||
match std::env::var("OPT_LEVEL") {
|
||||
Ok(level) if std::env::var("CI").is_err() => {
|
||||
if level != "2" && level != "3" {
|
||||
if level != "2" && level != "3" && level != "s" {
|
||||
Err(format!(
|
||||
"Building esp-storage for ESP32 needs optimization level 2 or 3 - yours is {level}. See https://github.com/esp-rs/esp-storage"
|
||||
"Building esp-storage for ESP32 needs optimization level 2, 3 or s - yours is {level}. See https://github.com/esp-rs/esp-storage"
|
||||
))
|
||||
} else {
|
||||
Ok(())
|
||||
|
@ -39,9 +39,9 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
);
|
||||
|
||||
if let Ok(level) = std::env::var("OPT_LEVEL") {
|
||||
if level != "2" && level != "3" {
|
||||
if level != "2" && level != "3" && level != "s" {
|
||||
let message = format!(
|
||||
"esp-wifi should be built with optimization level 2 or 3 - yours is {level}.
|
||||
"esp-wifi should be built with optimization level 2, 3 or s - yours is {level}.
|
||||
See https://github.com/esp-rs/esp-wifi",
|
||||
);
|
||||
print_warning(message);
|
||||
|
Loading…
x
Reference in New Issue
Block a user