fix gitignore

This commit is contained in:
Faynot
2026-03-27 21:42:34 +03:00
parent 6554f67fff
commit 83117c0a65
6 changed files with 262 additions and 9 deletions

7
kernel/build.rs Normal file
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");
}