aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-12 17:14:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-12 17:14:07 -0700
commit9483f8b998df9c49a4122d163e0e2ef92bf7a1c1 (patch)
tree7c4aeafedf48aabf05cd9648995fed1a995ad702 /emscripten.py
parent1706d678343c3bcf4abc911a5228fa2911d90eb6 (diff)
infrastructure for implementing i64 math in asm.js, and implement i64Add and llvm_uadd_with_overflow_i64 that way
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py4
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