core: move irrt c++ sources to /nac3core/irrt

This commit is contained in:
lyken 2024-07-09 11:21:55 +08:00
parent bc91ab9b13
commit e9cf6ce1e5
4 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ fn compile_irrt(irrt_dir: &Path, out_dir: &Path) {
"-", "-",
]; ];
println!("cargo:rerun-if-changed={path}", path = irrt_cpp_path.to_str().unwrap()); println!("cargo:rerun-if-changed={}", out_dir.to_str().unwrap());
let output = Command::new("clang-irrt") let output = Command::new("clang-irrt")
.args(flags) .args(flags)
@ -111,14 +111,14 @@ fn compile_irrt_test(irrt_dir: &Path, out_dir: &Path) {
o o
}) })
.unwrap(); .unwrap();
println!("cargo:rerun-if-changed={path}", path = irrt_test_cpp_path.to_str().unwrap()); println!("cargo:rerun-if-changed={}", out_dir.to_str().unwrap());
} }
fn main() { fn main() {
let out_dir = env::var("OUT_DIR").unwrap(); let out_dir = env::var("OUT_DIR").unwrap();
let out_dir = Path::new(&out_dir); let out_dir = Path::new(&out_dir);
let irrt_dir = Path::new("src/codegen/irrt"); let irrt_dir = Path::new("./irrt");
compile_irrt(irrt_dir, out_dir); compile_irrt(irrt_dir, out_dir);