build: exclude chcon and runcon from util_map for non-Linux targets

This commit is contained in:
xtqqczze
2026-05-19 04:17:59 +01:00
committed by Daniel Hofstetter
parent 7cd4bbeee2
commit 85a817566f

View File

@@ -44,6 +44,10 @@ pub fn main() {
// Allow this as we have a bunch of info in the comments
#[allow(clippy::match_same_arms)]
match krate.as_ref() {
#[cfg(not(any(target_os = "linux", target_os = "android")))]
"chcon" | "runcon" => {
continue;
}
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" | "clap_complete"
| "clap_mangen" | "fluent_syntax" => continue, // common/standard feature names
"nightly" | "test_unimplemented" | "expensive_tests" | "test_risky_names" => {