Skip to content

Commit e20895b

Browse files
xtqqczzesylvestre
authored andcommitted
build(nohup): gate by target support
1 parent 2fb77e8 commit e20895b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/uu/nohup/Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ path = "src/nohup.rs"
1616
test = false
1717
doctest = false
1818

19-
[dependencies]
19+
[target.'cfg(any(unix, windows))'.dependencies]
2020
clap = { workspace = true }
2121
fluent = { workspace = true }
2222
thiserror = { workspace = true }
@@ -35,3 +35,4 @@ workspace = true
3535
[[bin]]
3636
name = "nohup"
3737
path = "src/main.rs"
38+
required-features = ["uucore/default"]

‎src/uu/nohup/src/nohup.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
// spell-checker:ignore (ToDO) SIGHUP cproc vprocmgr homeout
77

8+
#![cfg(any(unix, windows))]
9+
810
use clap::{Arg, ArgAction, Command};
911
use std::env;
1012
use std::ffi::OsString;

0 commit comments

Comments
 (0)