Skip to content

Commit

Permalink
WEB3-65: Rerun build when RISC0_USE_DOCKER changes (#134)
Browse files Browse the repository at this point in the history
add cargo:rerun-if-env-changed=RISC0_USE_DOCKER
  • Loading branch information
nategraf committed Sep 10, 2024
1 parent 87712a7 commit e296def
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions methods/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const SOLIDITY_ELF_PATH: &str = "../tests/Elf.sol";
fn main() {
// Builds can be made deterministic, and thereby reproducible, by using Docker to build the
// guest. Check the RISC0_USE_DOCKER variable and use Docker to build the guest if set.
println!("cargo:rerun-if-env-changed=RISC0_USE_DOCKER");
let use_docker = env::var("RISC0_USE_DOCKER").ok().map(|_| DockerOptions {
root_dir: Some("../".into()),
});
Expand Down

0 comments on commit e296def

Please sign in to comment.