From 85a817566f2fc36a1006bbb05867992628a34280 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 19 May 2026 04:17:59 +0100 Subject: [PATCH] build: exclude chcon and runcon from util_map for non-Linux targets --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 9534a79b8..b2d4c5227 100644 --- a/build.rs +++ b/build.rs @@ -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" => {