Hi list,
Using make, I want to be able to produce two different versions of the
final output JS: one completely optimised and minified; the other that
is fully indented, commented and readable.
Ideally, I would run a compile step from *.cpp -> *.bc, then I would run
a link step which specifies the optimisation level for that target
(either full, or none). But, there's a problem with that.
If I compile the intermediate step without the -O2 option, my final
"optimised and minified" script is about 500K (this is with options "-O2
--closure 1" in the link step). OTOH, if I do include the -O2 option in
the first compile pass, my output is down to 100K (quite a significant
difference) but my "fully readable" script is now minified as well.
Is there any way around this without having to compile from scratch each
time, or maintain two separate sets of intermediate files (which largely
defeats the purpose)?
TIA,
- Robert
--
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 emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.