aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/compiler.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/cljcc/compiler.clj')
-rw-r--r--src/cljcc/compiler.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cljcc/compiler.clj b/src/cljcc/compiler.clj
index 6a4d13d..9e0a9a4 100644
--- a/src/cljcc/compiler.clj
+++ b/src/cljcc/compiler.clj
@@ -54,9 +54,11 @@
(defn il->assembly [il]
(let [fn-assembly (emit-function-assembly (first il))]
(if (= :linux (get-os))
- (conj fn-assembly linux-assembly-end)
+ (concat fn-assembly [linux-assembly-end])
fn-assembly)))
+(conj [1 2 3] 1)
+
(defn join-assembly [assembly-lines]
(str/join "\n" assembly-lines))