forked from M-Labs/nac3
core: move irrt c++ sources to /nac3core/irrt
This commit is contained in:
parent
8754f252f6
commit
01042aecfb
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue