Actually, I don’t: as I understand —closure 2 changes the asm.js code, which is 
not what I want. I really am only interested in running closure on the wrapper 
code. With the new optimiser backend (but without —closure 1), the code is 
semi-minified (AFAICS, whitespaces/newlines are removed). Adding —closure 1 
seems to re-insert whitespace and newlines, which is weird. It does leave an 
effect other than that, as the code looks very different.

Soeren

> On 21 Dec 2014, at 15:19, Alon Zakai <[email protected]> wrote:
> 
> See emcc --help, you are probably looking for --closure 2. But see warnings 
> in the documentation there.
> 
> - Alon
> 
> 
> On Sat, Dec 20, 2014 at 9:16 PM, Soeren Balko <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> I have tried to rebuild my project with the new native optimizer on incoming 
> (no problems) and also tried running closure (--closure 1) during the build 
> (in conjunction with some additions to the generated Javascript using 
> --js-transform, --pre-js, --post-js). However I noticed that while the 
> generated code looks different from when I do not use "--closure 1", it is 
> not minified. I think I made sure that there is enough heap space for Java - 
> at the least the compiler completes without an error, so I must assume that 
> closure has, indeed, finished. 
> 
> Any ideas?
> 
> Soeren
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "emscripten-discuss" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/emscripten-discuss/1JqFyMIw-Ac/unsubscribe 
> <https://groups.google.com/d/topic/emscripten-discuss/1JqFyMIw-Ac/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.


-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to