Rerun build on circuit dir or lib dir change.

This commit is contained in:
Alejandro Cabeza Romero 2026-05-15 13:10:34 +02:00
parent f195de907e
commit d1a71fdf74
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD

View File

@ -179,6 +179,8 @@ pub fn build(circuit_name: &str, circuit_lib_dir_var: &str) {
.to_str()
.expect("Failed to convert the bundle library directory path to a string");
println!("cargo:rerun-if-changed={circuit_lib_dir_str}");
println!("cargo:rerun-if-changed={bundle_lib_dir_str}");
println!("cargo:rustc-env={circuit_lib_dir_var}={circuit_lib_dir_str}"); // Ensure it's always defined for downstream crates.
println!("cargo:rustc-link-search=native={circuit_lib_dir_str}");
println!("cargo:rustc-link-search=native={bundle_lib_dir_str}");