Skip to content

Commit 85a8175

Browse files
xtqqczzecakebaker
authored andcommitted
build: exclude chcon and runcon from util_map for non-Linux targets
1 parent 7cd4bbe commit 85a8175

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ pub fn main() {
4444
// Allow this as we have a bunch of info in the comments
4545
#[allow(clippy::match_same_arms)]
4646
match krate.as_ref() {
47+
#[cfg(not(any(target_os = "linux", target_os = "android")))]
48+
"chcon" | "runcon" => {
49+
continue;
50+
}
4751
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" | "clap_complete"
4852
| "clap_mangen" | "fluent_syntax" => continue, // common/standard feature names
4953
"nightly" | "test_unimplemented" | "expensive_tests" | "test_risky_names" => {

0 commit comments

Comments
 (0)