gila/kernel/build.rs
August 88fe204b02
Some checks failed
Continuous Integration / Check (push) Successful in 1m57s
Continuous Integration / Clippy (push) Has been cancelled
Convert to workspace
2025-11-13 17:09:20 -05:00

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