mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +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.
7 lines
162 B
Rust
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");
|
|
}
|