Skip to content

Commit 38003e3

Browse files
committed
Fix parsing of -s settings when one refers to a value that has an equals sign in it. Fixes #5467.
1 parent d51ff74 commit 38003e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def check(input_file):
861861

862862
# Apply -s settings in newargs here (after optimization levels, so they can override them)
863863
for change in settings_changes:
864-
key, value = change.split('=')
864+
key, value = change.split('=', 1)
865865

866866
# In those settings fields that represent amount of memory, translate suffixes to multiples of 1024.
867867
if key in ['TOTAL_STACK', 'TOTAL_MEMORY', 'GL_MAX_TEMP_BUFFER_SIZE', 'SPLIT_MEMORY', 'BINARYEN_MEM_MAX']:

0 commit comments

Comments
 (0)