Skip to content

Commit 31240ea

Browse files
committed
remove print, add nontrapping-fptoint
1 parent a75e790 commit 31240ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

emcc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,12 +854,16 @@ def phase_setup(options, state, newargs):
854854
settings.BULK_MEMORY = 1
855855

856856
if '-mbulk-memory' not in newargs and '-mno-bulk-memory' not in newargs:
857-
print('newargs bulk')
858857
if feature_matrix.caniuse(feature_matrix.Feature.BULK_MEMORY):
859858
newargs += ['-mbulk-memory']
860859
settings.BULK_MEMORY = 1
861860
else:
862861
newargs += ['-mno-bulk-memory']
862+
if '-mnontrapping-fptoint' not in newargs and '-mno-nontrapping-fptoint' not in newargs:
863+
if feature_matrix.caniuse(feature_matrix.Feature.NON_TRAPPING_FPTOINT):
864+
newargs += ['-mnontrapping-fptoint']
865+
else:
866+
newargs += ['-mno-nontrapping-fptoint']
863867

864868
if 'DISABLE_EXCEPTION_CATCHING' in user_settings and 'EXCEPTION_CATCHING_ALLOWED' in user_settings:
865869
# If we get here then the user specified both DISABLE_EXCEPTION_CATCHING and EXCEPTION_CATCHING_ALLOWED

0 commit comments

Comments
 (0)