diff --git a/crates/build/src/lib.rs b/crates/build/src/lib.rs index 0d8c1bb6..510db5c7 100644 --- a/crates/build/src/lib.rs +++ b/crates/build/src/lib.rs @@ -2,8 +2,8 @@ mod macos; mod windows; pub fn setup() { - println!("cargo:rerun-if-changed=TYPE_DEF_TMP_PATH"); - println!("cargo:rerun-if-changed=DEBUG_GENERATED_CODE"); + println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH"); + println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE"); match std::env::var("CARGO_CFG_TARGET_OS").as_deref() { Ok("macos") => macos::setup(), Ok("windows") => windows::setup(),