rp-hal-boards/boards/rp-pico/build.rs
Jan Niehusmann 365ac70ae4 Fix building of examples which do not use defmt
Uses build.rs in board directories to set the linker options locally.
The file .cargo/config can't be used for that, as in a workspace the
local .cargo/config is ignored if the build is triggered from the
workspace root.
2022-07-31 15:35:49 +00:00

7 lines
162 B
Rust

//! This build script makes sure the linker flag -Tdefmt.x is added
//! for the examples.
fn main() {
println!("cargo:rustc-link-arg-examples=-Tdefmt.x");
}