Skip to content

Commit

Permalink
add a rerun if output to try to invalidate the build cache when sol f…
Browse files Browse the repository at this point in the history
…iles change
  • Loading branch information
nategraf committed Jun 11, 2024
1 parent 0c0ce5d commit 0087efe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ use std::process::Command;
use anyhow::Context;

fn main() -> anyhow::Result<()> {
// Rerun the build script if anything in the src folder has changed, and in particular if any
// of the Solidity source files have changed.
println!("cargo::rerun-if-changed=src");

let out_dir = std::env::var("OUT_DIR").unwrap();
let out_dir = std::path::Path::new(&out_dir);
let cache_dir = out_dir.join(".cache");
Expand Down

0 comments on commit 0087efe

Please sign in to comment.