Skip to content

Commit edd3875

Browse files
committed
include precise i64 math stuff when fastcomp tells us
1 parent eb08372 commit edd3875

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

emscripten.py

+2
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,8 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
814814
# Settings changes
815815
assert settings['TARGET_LE32'] == 1
816816
settings['TARGET_LE32'] = 2
817+
if '_i64Add' in metadata['declares']: # TODO: others, once we split them up
818+
settings['PRECISE_I64_MATH'] = 2
817819

818820
# Save settings to a file to work around v8 issue 1579
819821
settings_file = temp_files.get('.txt').name

0 commit comments

Comments
 (0)