Permalink
Browse files

* src/clj/cljs/closure.clj: CLJS-323: add compiler build :warnings tr…

…ue option
  • Loading branch information...
1 parent 16863e3 commit d4671a96fbcc046bf4b0b25f445e7d06b6b8ab6a David Nolen committed Jun 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/clj/cljs/closure.clj
@@ -871,7 +871,9 @@
(binding [ana/*cljs-static-fns*
(or (and (= (opts :optimizations) :advanced))
(:static-fns opts)
- ana/*cljs-static-fns*)]
+ ana/*cljs-static-fns*)
+ ana/*cljs-warn-on-undeclared*
+ (true? (opts :warnings))]
(let [compiled (-compile source all-opts)
compiled (concat
(if (coll? compiled) compiled [compiled])

0 comments on commit d4671a9

Please sign in to comment.