mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 21:00:59 +00:00

* Build examples in debug mode * Allow building psram examples in debug mode in CI * Don't rebuild tests, try to avoid rebuilding dependencies
20 lines
647 B
Rust
20 lines
647 B
Rust
fn main() {
|
|
if cfg!(feature = "esp32c6") || cfg!(feature = "esp32h2") {
|
|
println!("cargo::rustc-link-arg=-Trom_coexist.x");
|
|
println!("cargo::rustc-link-arg=-Trom_functions.x");
|
|
println!("cargo::rustc-link-arg=-Trom_phy.x");
|
|
}
|
|
|
|
if cfg!(feature = "esp-wifi") {
|
|
println!("cargo::rustc-link-arg=-Trom_functions.x");
|
|
}
|
|
|
|
// Allow building examples in CI in debug mode
|
|
println!("cargo:rustc-check-cfg=cfg(is_not_release)");
|
|
println!("cargo:rerun-if-env-changed=CI");
|
|
#[cfg(debug_assertions)]
|
|
if std::env::var("CI").is_err() {
|
|
println!("cargo::rustc-cfg=is_not_release");
|
|
}
|
|
}
|