mirror of
https://github.com/uutils/coreutils
synced 2024-10-01 13:35:03 +00:00
Add 'windows_legacy' feature to allow build for older windows versions
This commit is contained in:
parent
55209c6490
commit
95809ae98e
|
@ -39,6 +39,15 @@ unix = [
|
|||
"generic"
|
||||
]
|
||||
windows = ["generic"]
|
||||
windows_legacy = [
|
||||
"arch",
|
||||
"nproc",
|
||||
"sync",
|
||||
"touch",
|
||||
"whoami",
|
||||
|
||||
"redox_generic"
|
||||
]
|
||||
# Feature "fuchsia" contains the exclusive list of utilities
|
||||
# that can be compiled and run on Fuchsia. Should be built
|
||||
# with --no-default-features when selecting this feature.
|
||||
|
|
2
build.rs
2
build.rs
|
@ -16,7 +16,7 @@ pub fn main() {
|
|||
if val == "1" && key.starts_with(feature_prefix) {
|
||||
let krate = key[feature_prefix.len()..].to_lowercase();
|
||||
match krate.as_ref() {
|
||||
"default" | "unix" | "redox" | "redox_generic" | "fuchsia" | "generic" | "windows"
|
||||
"default" | "unix" | "redox" | "redox_generic" | "fuchsia" | "generic" | "windows" | "windows_legacy"
|
||||
| "nightly" | "test_unimplemented" => continue,
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue