浏览代码

integration-test: properly rebuild bpf on change

Tamir Duberstein 1 年之前
父节点
当前提交
38a2711720
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test/integration-test/build.rs

+ 2 - 0
test/integration-test/build.rs

@@ -96,6 +96,7 @@ fn main() {
 
         for (src, dst) in c_bpf_probes {
             let src = bpf_dir.join(src);
+            println!("cargo:rerun-if-changed={}", src.to_str().unwrap());
             let mut cmd = Command::new("clang");
             cmd.arg("-I")
                 .arg(&libbpf_headers_dir)
@@ -117,6 +118,7 @@ fn main() {
         }
 
         let ebpf_dir = manifest_dir.parent().unwrap().join("integration-ebpf");
+        println!("cargo:rerun-if-changed={}", ebpf_dir.to_str().unwrap());
         let target = format!("{target}-unknown-none");
 
         let mut cmd = Command::new("cargo");