diff options
author | Joe Lee <jlee@imvu.com> | 2013-02-08 18:20:19 -0800 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-04-12 10:24:58 +0700 |
commit | 1bea45e1d749b7c4974c9d85daf2606e6ab0ec54 (patch) | |
tree | 82bad4d21bb1bf6bdba37d13cc67f1dd602a3133 /emscripten.py | |
parent | 5ba4497c3b1751a9f212e0fe0fe1d10151fab209 (diff) |
Don't trigger 1-core assert when there are no chunks to work on.
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emscripten.py b/emscripten.py index 8d46b888..502e951c 100755 --- a/emscripten.py +++ b/emscripten.py @@ -225,10 +225,10 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, # TODO: minimize size of forwarded data from funcs to what we actually need - if cores == 1 and total_ll_size < MAX_CHUNK_SIZE: - assert len(chunks) == 1, 'no point in splitting up without multiple cores' - if len(chunks) > 0: + if cores == 1 and total_ll_size < MAX_CHUNK_SIZE: + assert len(chunks) == 1, 'no point in splitting up without multiple cores' + if DEBUG: print >> sys.stderr, ' emscript: phase 2 working on %d chunks %s (intended chunk size: %.2f MB, meta: %.2f MB, forwarded: %.2f MB, total: %.2f MB)' % (len(chunks), ('using %d cores' % cores) if len(chunks) > 1 else '', chunk_size/(1024*1024.), len(meta)/(1024*1024.), len(forwarded_data)/(1024*1024.), total_ll_size/(1024*1024.)) commands = [ |