fix(build): rerun if cli version changed (#1789)
- Close https://github.com/napi-rs/napi-rs/issues/1719
This commit is contained in:
parent
dac073805b
commit
b03b3ee4dc
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@ mod wasi;
|
|||
pub fn setup() {
|
||||
println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE");
|
||||
println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH");
|
||||
println!("cargo:rerun-if-env-changed=CARGO_CFG_NAPI_RS_CLI_VERSION");
|
||||
match std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
|
||||
Ok("macos") => {
|
||||
macos::setup();
|
||||
|
|
Loading…
Reference in a new issue