aboutsummaryrefslogtreecommitdiff
path: root/tools/js_optimizer.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-26 14:50:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-26 14:50:01 -0700
commit1cc28b8e9e94267041bc71afebfbbe3059db4a3f (patch)
tree107571ed84b48bab5bfb5aea6b7e5b01b814929f /tools/js_optimizer.py
parent06e7518718115977026830676b80c7279e924b5f (diff)
parent422d9a1f3227ae8f47fa8bd0037c2220bb2017f7 (diff)
Merge branch 'incoming'
Diffstat (limited to 'tools/js_optimizer.py')
-rw-r--r--tools/js_optimizer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index acb87460..5d7dc562 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -224,6 +224,10 @@ EMSCRIPTEN_FUNCS();
total_size = len(js)
js = None
+ if 'last' in passes and len(funcs) > 0:
+ if max([len(func[1]) for func in funcs]) > 200000:
+ print >> sys.stderr, 'warning: Output contains some very large functions, consider using OUTLINING_LIMIT to break them up (see settings.js)'
+
# if we are making source maps, we want our debug numbering to start from the
# top of the file, so avoid breaking the JS into chunks
cores = 1 if source_map else int(os.environ.get('EMCC_CORES') or multiprocessing.cpu_count())