From 8f0864f8d28a9c0693c1d89e24e6a69110d6625a Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Tue, 24 Dec 2024 23:46:06 +0530 Subject: Fix driver bug, remove empty strings from command --- src/cljcc/util.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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] -- cgit v1.2.3