From b9f43455f07fdc71006865e2b1a865e6347e5eda Mon Sep 17 00:00:00 2001 From: Sam Holmes Date: Mon, 22 Nov 2021 14:35:05 +0000 Subject: [PATCH] fix(napi-build): cargo:rerun-if commands (#871) --- crates/build/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(),