aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/util.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/cljcc/util.clj')
-rw-r--r--src/cljcc/util.clj8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cljcc/util.clj b/src/cljcc/util.clj
index 81419e4..6c6c88e 100644
--- a/src/cljcc/util.clj
+++ b/src/cljcc/util.clj
@@ -2,6 +2,12 @@
(:require [clojure.java.shell :refer [sh]]
[cljcc.log :as log]))
+(defn make-file-name
+ ([^String filename ^String ext]
+ (str filename "." ext))
+ ([directory filename ext]
+ (str directory "/" filename "." ext)))
+
(defn get-os []
(let [os-name (.toLowerCase (System/getProperty "os.name"))]
(cond
@@ -10,7 +16,7 @@
:else :unsupported)))
(defn mac-aarch64? []
- (and (= :mac (get-os)) (= (System/getProperty "os.arch" "aarch64"))))
+ (and (= :mac (get-os)) (= (System/getProperty "os.arch") "aarch64")))
(defn handle-sh
"Preprends arch -x86_64 if running under Mac M chips."