mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00:00
build.rs: Use rsconf::declare_dependency()
This new feature in rsconf 0.2.0 resolves the compile-time warnings we get under rustc 1.80+ about unrecognized cfg names by informing cargo of all valid cfg names/values even when the cfg in question isn't enabled.
This commit is contained in:
parent
2faf1159fa
commit
a7bde3921b
1 changed files with 1 additions and 2 deletions
3
build.rs
3
build.rs
|
@ -92,8 +92,7 @@ fn detect_cfgs(target: &mut Target) {
|
||||||
] {
|
] {
|
||||||
match handler(target) {
|
match handler(target) {
|
||||||
Err(e) => rsconf::warn!("{}: {}", name, e),
|
Err(e) => rsconf::warn!("{}: {}", name, e),
|
||||||
Ok(true) => rsconf::enable_cfg(name),
|
Ok(enabled) => rsconf::declare_cfg(name, enabled),
|
||||||
Ok(false) => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue