Skip to content

Commit

Permalink
(build.rs) fix: rerun on env or build change
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed Jun 11, 2024
1 parent 469ffa9 commit 6af9c9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ fn main() {
}
}

// We can alternatively just download, build, and statically link z3
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-env-changed=ISLA_STATIC_Z3");

// We can alternatively statically link z3
if env::var("ISLA_STATIC_Z3").is_ok() {
// if we don't have a z3 library ready-to-go, download and build one.
if !Path::new("./libz3.a").exists() {
Expand Down

0 comments on commit 6af9c9d

Please sign in to comment.