id: add conditional compilation for selinux

This commit is contained in:
Jan Scheer 2021-07-12 17:33:24 +02:00
parent 92bc647ac3
commit 7abc6a665e
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
6 changed files with 50 additions and 20 deletions

View file

@ -28,8 +28,8 @@ pub fn main() {
if val == "1" && key.starts_with(env_feature_prefix) {
let krate = key[env_feature_prefix.len()..].to_lowercase();
match krate.as_ref() {
"default" | "macos" | "unix" | "windows" => continue, // common/standard feature names
"nightly" | "test_unimplemented" => continue, // crate-local custom features
"default" | "macos" | "unix" | "windows" | "selinux" => continue, // common/standard feature names
"nightly" | "test_unimplemented" => continue, // crate-local custom features
"test" => continue, // over-ridden with 'uu_test' to avoid collision with rust core crate 'test'
s if s.starts_with(feature_prefix) => continue, // crate feature sets
_ => {} // util feature name