From e296def1a60c92eeb9333fdfa19007e62286dc18 Mon Sep 17 00:00:00 2001 From: Victor Graf Date: Tue, 10 Sep 2024 10:42:39 -0700 Subject: [PATCH] WEB3-65: Rerun build when RISC0_USE_DOCKER changes (#134) add cargo:rerun-if-env-changed=RISC0_USE_DOCKER --- methods/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/methods/build.rs b/methods/build.rs index 11130e59..6d2b67ec 100644 --- a/methods/build.rs +++ b/methods/build.rs @@ -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()), });