aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-12-24 23:46:06 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-12-24 23:46:06 +0530
commit8f0864f8d28a9c0693c1d89e24e6a69110d6625a (patch)
treee134ada6c6f37380e6bcdd94b165cf0e8892ee85 /src
parent382c19861608e9ab9903c78f1e5c02bc061cc7c8 (diff)
Fix driver bug, remove empty strings from command
Diffstat (limited to 'src')
-rw-r--r--src/cljcc/util.clj7
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]