gila/build.rs
August c6e032d9c9
All checks were successful
Continuous Integration / Check (push) Successful in 42s
Continuous Integration / Clippy (push) Successful in 40s
Back to one crate. idk what I was doing earlier
2026-06-30 20:45:09 +00:00

7 lines
320 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/kernel/arch/{arch}/linker.ld");
// ..and to re-run if it changes.
println!("cargo:rerun-if-changed=src/kernel/arch/{arch}linker.ld");
}