   ([source opts compiler-env]
      (env/with-compiler-env compiler-env
        (let [compiler-stats (:compiler-stats opts)
-             all-opts (add-implicit-options opts)
-             emit-constants (or (and (= (:optimizations opts) :advanced)
-                                     (not (false? (:optimize-constants opts))))
-                                (:optimize-constants opts))]
+             all-opts (add-implicit-options opts)]
          (check-output-to opts)
          (check-output-dir opts)
          (check-source-map opts)

         (check-node-target opts)
         (swap! compiler-env
           #(-> %
             (assoc-in [:options :emit-constants] emit-constants)
             (assoc :target (:target opts))
             (assoc :js-dependency-index (deps/js-dependency-index all-opts))))
         (binding [comp/*dependents* (when-not (false? (:recompile-dependents opts))

          :output-dir output-dir
          :ups-libs libs
          :ups-foreign-libs foreign-libs
          :ups-externs externs
          :emit-constants emit-constants)
        (update-in [:preamble] #(into (or % []) ["cljs/imul.js"])))

      (:target opts)
