Skip to content

Commit a352b33

Browse files
committed
verbose logging of output for -c
1 parent f18c318 commit a352b33

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/main/clojure/cljs/cli.clj

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,17 @@ present"
386386
(:uri (build/ns->location main-ns)))
387387
repl? (boolean (#{"-r" "--repl"} (first args)))
388388
cenv (env/default-compiler-env)]
389-
(if-let [path (:watch opts)]
390-
(if repl?
391-
(.start (Thread. #(watch-proc cenv path opts)))
392-
(build/watch path opts cenv))
393-
(build/build source opts cenv))
394-
(when repl?
395-
(repl-opt repl-env args
396-
(assoc-in cfg [:options :compiler-env] cenv)))))
389+
(binding [ana/*verbose* (:verbose opts)]
390+
(when ana/*verbose*
391+
(util/debug-prn "Compiler options:" (pr-str opts)))
392+
(if-let [path (:watch opts)]
393+
(if repl?
394+
(.start (Thread. #(watch-proc cenv path opts)))
395+
(build/watch path opts cenv))
396+
(build/build source opts cenv))
397+
(when repl?
398+
(repl-opt repl-env args
399+
(assoc-in cfg [:options :compiler-env] cenv))))))
397400

398401
(defn- compile-opt
399402
[repl-env [_ ns & args] cfg]

0 commit comments

Comments
 (0)