gila/build.rs
August c3280cbbfc
All checks were successful
Continuous Integration / Check (push) Successful in 40s
Continuous Integration / Clippy (push) Successful in 47s
shut up clippy
2026-06-30 21:27:27 +00:00

8 lines
327 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");
}