From 9873c864efd83374131085e71051aee6ce035124 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Fri, 9 Sep 2022 14:04:08 -0700 Subject: [PATCH] More aggressive target flag off --- src/cli/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 20a2723..54bb698 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -40,6 +40,7 @@ pub(crate) struct HarmonicCli { /// Number of build users to create #[clap(long, default_value = "32", env = "HARMONIC_NIX_DAEMON_USER_COUNT")] pub(crate) daemon_user_count: usize, + #[cfg(target_os = "linux")] #[clap(subcommand)] subcommand: Option, } @@ -62,8 +63,8 @@ impl CommandExecute for HarmonicCli { subcommand, } = self; + #[cfg(target_os = "linux")] match subcommand { - #[cfg(target_os = "linux")] Some(subcommand::Subcommand::NixOs(nixos)) => return nixos.execute().await, None => (), }