aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-09 09:12:35 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-09 09:12:35 -0800
commit92a6658da855b0e6bb9bd157992912e242985e76 (patch)
tree13f26cfa806b2c6fb949bb6358526add748faace
parentf1bbf0244b08dce2c2bfb9fc507d6088dcb6a596 (diff)
minify by default in -O2+, unless -g
-rwxr-xr-xemcc12
1 files changed, 5 insertions, 7 deletions
diff --git a/emcc b/emcc
index 58d49972..035180ac 100755
--- a/emcc
+++ b/emcc
@@ -332,13 +332,11 @@ Options that are modified or new in %s include:
output HTML but with suffix .data.compress
--minify <on> 0: Do not minify the generated JavaScript's
- whitespace (default if closure compiler
- will not be run)
+ whitespace (default in -O0, -O1, or if
+ -g is used)
1: Minify the generated JavaScript's
- whitespace (default if closure compiler
- will be run). Note that this by itself
- will not minify the code (closure does
- that)
+ whitespace (default in -O2+, assuming
+ -g is not used)
--split <size> Splits the resulting javascript file into pieces
to ease debugging. This option only works if
@@ -983,7 +981,7 @@ try:
closure = False
if minify_whitespace is None:
- minify_whitespace = closure # if closure is run, minify whitespace
+ minify_whitespace = opt_level >= 2 and not keep_js_debug
## Compile source code to bitcode