Skip to content

Commit 8b6e925

Browse files
committed
fix(sys): detect nginx build configuration changes
1 parent e59d8b8 commit 8b6e925

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: nginx-sys/build/main.rs

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

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

0 commit comments

Comments
 (0)