aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-07 10:49:33 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-12-07 10:49:33 -0500
commitedd38757c87a9d6680c736b1f10664ceb2d467e3 (patch)
tree1738dc9094bcefaefb5d1675c8b192109ec3bf62 /emscripten.py
parenteb083723747a90cb6ab9853fec8d6e8ef54748bc (diff)
include precise i64 math stuff when fastcomp tells us
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py
index 907e88ce..3866d14e 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -814,6 +814,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
# Settings changes
assert settings['TARGET_LE32'] == 1
settings['TARGET_LE32'] = 2
+ if '_i64Add' in metadata['declares']: # TODO: others, once we split them up
+ settings['PRECISE_I64_MATH'] = 2
# Save settings to a file to work around v8 issue 1579
settings_file = temp_files.get('.txt').name