diff options
Diffstat (limited to 'src/cljcc')
| -rw-r--r-- | src/cljcc/util.clj | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cljcc/util.clj b/src/cljcc/util.clj index 0a24eef..a40916b 100644 --- a/src/cljcc/util.clj +++ b/src/cljcc/util.clj @@ -45,9 +45,10 @@ (defn handle-sh "Preprends arch -x86_64 if running under Mac M chips." [command & args] - (if (mac-aarch64?) - (apply sh "arch" "-x86_64" command args) - (apply sh command args))) + (let [args (filterv (comp not empty?) args)] + (if (mac-aarch64?) + (apply sh "arch" "-x86_64" command args) + (apply sh command args)))) (defn exit ([status msg] |
