diff options
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py index bbc4f76d..d7a24fbc 100755 --- a/emscripten.py +++ b/emscripten.py @@ -313,6 +313,10 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, last_forwarded_json = json.loads(last_forwarded_data) if settings.get('ASM_JS'): + post_funcs, post_rest = post.split('// EMSCRIPTEN_END_FUNCS\n') + post = post_rest + funcs_js += '\n' + post_funcs + '// EMSCRIPTEN_END_FUNCS\n' + simple = os.environ.get('EMCC_SIMPLE_ASM') class Counter: i = 0 |