Skip to content

Commit 33eb3e3

Browse files
committed
fix(sys): detect nginx build configuration changes
1 parent fb72e11 commit 33eb3e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nginx-sys/build/main.rs

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ fn main() -> Result<(), BoxError> {
7272
println!("cargo:rerun-if-changed=build/wrapper.h");
7373

7474
let nginx = NginxSource::from_env();
75+
println!(
76+
"cargo:rerun-if-changed={}",
77+
nginx.build_dir.join("Makefile").to_string_lossy()
78+
);
79+
println!(
80+
"cargo:rerun-if-changed={}",
81+
nginx.build_dir.join("ngx_auto_config.h").to_string_lossy()
82+
);
7583
// Read autoconf generated makefile for NGINX and generate Rust bindings based on its includes
7684
generate_binding(&nginx);
7785
Ok(())

0 commit comments

Comments
 (0)