it compiles!

This commit is contained in:
2025-02-20 02:47:18 +00:00
parent 0df671c3fc
commit 2f0e09b9bc
65 changed files with 119 additions and 248 deletions
+8 -6
View File
@@ -1,7 +1,9 @@
use std::process::Command;
use std::{env, path::Path};
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");
}
// Tell cargo to rerun if these files change
println!("cargo:rerun-if-changed=src");
println!("cargo:rerun-if-changed=linker.ld");
println!("cargo:rerun-if-changed=../config/limine.conf");
}