Skip to content

Commit

Permalink
Only rerun on RBCONFIG_ prefixed env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Aug 2, 2023
1 parent dc8c0f6 commit 4063303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rb-sys-build/src/rb_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ impl RbConfig {
}

fn try_rbconfig_env(&self, key: &str) -> Option<String> {
println!("cargo:rerun-if-env-changed={}", key);
let key = format!("RBCONFIG_{}", key);
println!("cargo:rerun-if-env-changed={}", key);
env::var(key).map(|v| v.trim_matches('\n').to_owned()).ok()
}
}
Expand Down

0 comments on commit 4063303

Please sign in to comment.