mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-28 23:59:50 +09:00
build: exclude chcon and runcon from util_map for non-Linux targets
This commit is contained in:
committed by
Daniel Hofstetter
parent
7cd4bbeee2
commit
85a817566f
4
build.rs
4
build.rs
@@ -44,6 +44,10 @@ pub fn main() {
|
|||||||
// Allow this as we have a bunch of info in the comments
|
// Allow this as we have a bunch of info in the comments
|
||||||
#[allow(clippy::match_same_arms)]
|
#[allow(clippy::match_same_arms)]
|
||||||
match krate.as_ref() {
|
match krate.as_ref() {
|
||||||
|
#[cfg(not(any(target_os = "linux", target_os = "android")))]
|
||||||
|
"chcon" | "runcon" => {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" | "clap_complete"
|
"default" | "macos" | "unix" | "windows" | "selinux" | "zip" | "clap_complete"
|
||||||
| "clap_mangen" | "fluent_syntax" => continue, // common/standard feature names
|
| "clap_mangen" | "fluent_syntax" => continue, // common/standard feature names
|
||||||
"nightly" | "test_unimplemented" | "expensive_tests" | "test_risky_names" => {
|
"nightly" | "test_unimplemented" | "expensive_tests" | "test_risky_names" => {
|
||||||
|
|||||||
Reference in New Issue
Block a user