Fix outdated build.rs comments

This commit is contained in:
Mahmoud Al-Qudsi 2024-01-18 18:10:47 -06:00
parent 1e925857f0
commit a1147c7c4f

View file

@ -86,7 +86,7 @@ fn detect_cfgs(target: Target) {
), ),
("bsd", &detect_bsd), ("bsd", &detect_bsd),
("gettext", &have_gettext), ("gettext", &have_gettext),
// See if the system headers provide the thread-safe localeconv_l(3) alternative to localeconv(3). // See if libc supports the thread-safe localeconv_l(3) alternative to localeconv(3).
("localeconv_l", &|target| { ("localeconv_l", &|target| {
Ok(target.has_symbol_in::<String>("localeconv_l", &[])) Ok(target.has_symbol_in::<String>("localeconv_l", &[]))
}), }),
@ -112,7 +112,7 @@ fn detect_cfgs(target: Target) {
} }
/// Detect if we're being compiled for a BSD-derived OS, allowing targeting code conditionally with /// Detect if we're being compiled for a BSD-derived OS, allowing targeting code conditionally with
/// `#[cfg(feature = "bsd")]`. /// `#[cfg(bsd)]`.
/// ///
/// Rust offers fine-grained conditional compilation per-os for the popular operating systems, but /// Rust offers fine-grained conditional compilation per-os for the popular operating systems, but
/// doesn't necessarily include less-popular forks nor does it group them into families more /// doesn't necessarily include less-popular forks nor does it group them into families more