diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-29 12:10:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-29 12:10:27 -0800 |
commit | 20e48678c8ac6e3962896aa87f6645cb1ec58922 (patch) | |
tree | 4ce43b60b1d743e293c41f5483da1912a7d4a065 /emscripten.py | |
parent | 74304761ffb75177c54597379cec34b1c2710284 (diff) |
do not emit empty postsets from js compiler for fastcomp output
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/emscripten.py b/emscripten.py index fc9bf42d..b9abaca1 100755 --- a/emscripten.py +++ b/emscripten.py @@ -862,14 +862,6 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, if key in all_exported_functions or export_all or (export_bindings and key.startswith('_emscripten_bind')): exported_implemented_functions.add(key) - if settings.get('ASM_JS'): - # move postsets into the asm module - class PostSets: js = '' - def handle_post_sets(m): - PostSets.js = m.group(0) - return '\n' - pre = re.sub(r'function runPostSets[^}]+}', handle_post_sets, pre) - #if DEBUG: outfile.write('// pre\n') outfile.write(pre) pre = None @@ -1105,7 +1097,7 @@ function setTempRet%d(value) { value = value|0; tempRet%d = value; } -''' % (i, i) for i in range(10)])] + [PostSets.js + '\n'] + funcs_js + [''' +''' % (i, i) for i in range(10)])] + funcs_js + [''' %s return %s; |