started setting up

This commit is contained in:
2025-02-19 16:47:23 +00:00
parent 501d1ac494
commit 0df671c3fc
62 changed files with 413 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
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=-Tlinker-{arch}.ld");
// ..and to re-run if it changes.
println!("cargo:rerun-if-changed=linker-{arch}.ld");
}