From 3842d3f9e0d68853077117a9192222e93e169079 Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Sat, 3 Nov 2012 03:46:56 +0100 Subject: [PATCH] CLJS-415: Speed up cljsc by exiting after output has been printed --- bin/cljsc.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/cljsc.clj b/bin/cljsc.clj index d721aa68af..1e376323b7 100644 --- a/bin/cljsc.clj +++ b/bin/cljsc.clj @@ -18,4 +18,7 @@ {:source source :options (merge {:output-to :print} options)})) (let [args (transform-cl-args *command-line-args*)] - (closure/build (:source args) (:options args))) + (closure/build (:source args) (:options args)) + (.flush *out*) + (shutdown-agents) + (System/exit 0))