started setting up support for C code in the kernel

This commit is contained in:
2025-02-20 17:13:40 +00:00
parent 294e6f0e33
commit 60efcf39b6
9 changed files with 71 additions and 2 deletions
+6 -1
View File
@@ -1,9 +1,14 @@
use std::process::Command;
use std::{env, path::Path};
use cc;
fn main() {
// 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");
}
cc::Build::new()
.file("src/main.c")
.compile("lib");
}