From 1a64acf43bb2407d4be3575c732d99faf74971c1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 1 Feb 2020 02:45:27 -0800 Subject: [PATCH] Don't rebuild `wasmtime-cli` on all file changes Print out an explicit `rerun-if-changed` annotation in the `build.rs` for the `wasmtime-cli` crate to avoid rebuilding it constantly as files like tests change which don't need to cause a rebuild. --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index d3ece13dde..9d19675915 100644 --- a/build.rs +++ b/build.rs @@ -11,6 +11,7 @@ use std::path::{Path, PathBuf}; use std::process::Command; fn main() -> anyhow::Result<()> { + println!("cargo:rerun-if-changed=build.rs"); let out_dir = PathBuf::from( env::var_os("OUT_DIR").expect("The OUT_DIR environment variable must be set"), );