More aggressive target flag off

This commit is contained in:
Ana Hobden 2022-09-09 14:04:08 -07:00
parent 9cc78c5416
commit 9873c864ef

View file

@ -40,6 +40,7 @@ pub(crate) struct HarmonicCli {
/// Number of build users to create /// Number of build users to create
#[clap(long, default_value = "32", env = "HARMONIC_NIX_DAEMON_USER_COUNT")] #[clap(long, default_value = "32", env = "HARMONIC_NIX_DAEMON_USER_COUNT")]
pub(crate) daemon_user_count: usize, pub(crate) daemon_user_count: usize,
#[cfg(target_os = "linux")]
#[clap(subcommand)] #[clap(subcommand)]
subcommand: Option<subcommand::Subcommand>, subcommand: Option<subcommand::Subcommand>,
} }
@ -62,8 +63,8 @@ impl CommandExecute for HarmonicCli {
subcommand, subcommand,
} = self; } = self;
#[cfg(target_os = "linux")]
match subcommand { match subcommand {
#[cfg(target_os = "linux")]
Some(subcommand::Subcommand::NixOs(nixos)) => return nixos.execute().await, Some(subcommand::Subcommand::NixOs(nixos)) => return nixos.execute().await,
None => (), None => (),
} }