Skip to content
Permalink
Browse files

add support for :parallel-build false (no threads)

Always defaults to true but libs like scope-capture have trouble
with threaded compilation
  • Loading branch information
thheller committed Sep 11, 2018
1 parent 532fb53 commit 99741e3edd07ef8ba8a20e5fc3e2e0cad14051ad
Showing with 11 additions and 10 deletions.
  1. +11 −10 src/main/shadow/build/compiler.clj
@@ -871,16 +871,17 @@
;; bump when starting a compile so watch doesn't cause timeouts
(vreset! last-progress-ref (System/currentTimeMillis))

(-> state
(closure/load-extern-properties)
(use-extern-properties)
(cond->
executor
(par-compile-cljs-sources sources non-cljs-provides)

;; seq compile doesn't really need the provides since it doesn't need to coordinate threads
(not executor)
(seq-compile-cljs-sources sources))))
(let [parallel-build (get-in state [:compiler-options :parallel-build])]
(-> state
(closure/load-extern-properties)
(use-extern-properties)
(cond->
(and executor (not (false? parallel-build)))
(par-compile-cljs-sources sources non-cljs-provides)

;; seq compile doesn't really need the provides since it doesn't need to coordinate threads
(or (false? parallel-build) (not executor))
(seq-compile-cljs-sources sources)))))

(defn copy-source-to-output [state sources]
(reduce

0 comments on commit 99741e3

Please sign in to comment.
You can’t perform that action at this time.