From 4063303c1bab04b140bca8bbc5288a41f9c07120 Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Wed, 2 Aug 2023 17:55:17 -0400 Subject: [PATCH] Only rerun on RBCONFIG_ prefixed env vars --- crates/rb-sys-build/src/rb_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rb-sys-build/src/rb_config.rs b/crates/rb-sys-build/src/rb_config.rs index 1a35034e..e738c3b1 100644 --- a/crates/rb-sys-build/src/rb_config.rs +++ b/crates/rb-sys-build/src/rb_config.rs @@ -430,8 +430,8 @@ impl RbConfig { } fn try_rbconfig_env(&self, key: &str) -> Option { - 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() } }