diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-10 11:26:23 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-10 11:26:23 -0800 |
commit | 563f6ad6d969a40443fb2ae8805bf8231ef6b565 (patch) | |
tree | 0d60afe181f2e53415b013394e3987d941123b80 | |
parent | e502997adaa4c84fae8bb33c4479492bb19e835f (diff) |
improve emscripten temp file storage
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 5c74a319..75167a29 100755 --- a/emscripten.py +++ b/emscripten.py @@ -171,7 +171,7 @@ def emscript(infile, settings, outfile, libraries=[]): 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)' % (len(chunks), ('using %d cores' % cores) if len(chunks) > 1 else '', chunk_size/(1024*1024.), len(meta)/(1024*1024.), len(forwarded_data)/(1024*1024.)) - commands = [(i, chunk + '\n' + meta, settings_file, compiler, forwarded_file, libraries) for chunk in chunks] + commands = [(i, chunks[i] + '\n' + meta, settings_file, compiler, forwarded_file, libraries) for i in range(len(chunks))] if len(chunks) > 1: pool = multiprocessing.Pool(processes=cores) |