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.
This commit is contained in:
Alex Crichton
2020-02-01 02:45:27 -08:00
parent f2fa484abf
commit 1a64acf43b

View File

@@ -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"),
);