Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a rerun if output to try to invalidate the build cache when sol files change #150

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading