From e9cf6ce1e56e492292118b80d4457ba8358ea8ea Mon Sep 17 00:00:00 2001 From: lyken Date: Tue, 9 Jul 2024 11:21:55 +0800 Subject: [PATCH] core: move irrt c++ sources to /nac3core/irrt --- nac3core/build.rs | 6 +++--- nac3core/{src/codegen => }/irrt/irrt.cpp | 0 nac3core/{src/codegen => }/irrt/irrt.hpp | 0 nac3core/{src/codegen => }/irrt/irrt_test.cpp | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename nac3core/{src/codegen => }/irrt/irrt.cpp (100%) rename nac3core/{src/codegen => }/irrt/irrt.hpp (100%) rename nac3core/{src/codegen => }/irrt/irrt_test.cpp (100%) diff --git a/nac3core/build.rs b/nac3core/build.rs index 7393ca9b..197c357b 100644 --- a/nac3core/build.rs +++ b/nac3core/build.rs @@ -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") .args(flags) @@ -111,14 +111,14 @@ fn compile_irrt_test(irrt_dir: &Path, out_dir: &Path) { o }) .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() { let out_dir = env::var("OUT_DIR").unwrap(); 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); diff --git a/nac3core/src/codegen/irrt/irrt.cpp b/nac3core/irrt/irrt.cpp similarity index 100% rename from nac3core/src/codegen/irrt/irrt.cpp rename to nac3core/irrt/irrt.cpp diff --git a/nac3core/src/codegen/irrt/irrt.hpp b/nac3core/irrt/irrt.hpp similarity index 100% rename from nac3core/src/codegen/irrt/irrt.hpp rename to nac3core/irrt/irrt.hpp diff --git a/nac3core/src/codegen/irrt/irrt_test.cpp b/nac3core/irrt/irrt_test.cpp similarity index 100% rename from nac3core/src/codegen/irrt/irrt_test.cpp rename to nac3core/irrt/irrt_test.cpp