fix(napi-build): cargo:rerun-if commands (#871)

This commit is contained in:
Sam Holmes 2021-11-22 14:35:05 +00:00 committed by GitHub
parent a1e3292b7a
commit b9f43455f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),