From d07d0170ad881015efe4c7ff00ecbfac4633df0c Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 21 May 2024 13:34:24 -0500 Subject: [PATCH] build.rs: also declare cfgs when we run into a warning e.g. gettext is found but can't be used --- build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 1fad634f7..5f3119603 100644 --- a/build.rs +++ b/build.rs @@ -91,7 +91,10 @@ fn detect_cfgs(target: &mut Target) { }), ] { match handler(target) { - Err(e) => rsconf::warn!("{}: {}", name, e), + Err(e) => { + rsconf::warn!("{}: {}", name, e); + rsconf::declare_cfg(name, false); + }, Ok(enabled) => rsconf::declare_cfg(name, enabled), } }