From 38a2711720e6bdd8c765d05fbcef4383bb680b4b Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 13 Jul 2023 19:01:42 -0400 Subject: [PATCH] integration-test: properly rebuild bpf on change --- test/integration-test/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration-test/build.rs b/test/integration-test/build.rs index c36d20a4..1a0859a0 100644 --- a/test/integration-test/build.rs +++ b/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");