gila/build.rs
August 77355d3f25
Some checks failed
Continuous Integration / Check (push) Failing after 43s
Continuous Integration / Clippy (push) Failing after 41s
Initial userboot support
2026-06-30 21:25:33 +00:00

7 lines
326 B
Rust

fn main() {
let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();
// Tell cargo to pass the linker script to the linker..
println!("cargo:rustc-link-arg=-Tsrc/linker_scripts/{arch}/linker.ld");
// ..and to re-run if it changes.
println!("cargo:rerun-if-changed=src/linker_scripts/{arch}linker.ld");
}