mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
build.rs: also declare cfgs when we run into a warning
e.g. gettext is found but can't be used
This commit is contained in:
parent
0b5e41b268
commit
d07d0170ad
1 changed files with 4 additions and 1 deletions
5
build.rs
5
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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue