mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-14 22:20:39 +11:00
365ac70ae4
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.
6 lines
162 B
Rust
6 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");
|
|
}
|