Skip to content

Commit 82182e6

Browse files
authored
Default to -mno-bulk-memory-opt (#23126)
This should fix the recent CI failures on the test-node-compat bot. Once #22873 lands this can, of course, be removed.
1 parent 98f59c7 commit 82182e6

32 files changed

+65
-59
lines changed

emcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def get_clang_flags(user_args):
391391
# Bulk memory may be enabled via threads or directly via -s.
392392
if not settings.BULK_MEMORY:
393393
flags.append('-mno-bulk-memory')
394+
flags.append('-mno-bulk-memory-opt')
394395
if '-mnontrapping-fptoint' not in user_args and '-mno-nontrapping-fptoint' not in user_args:
395396
flags.append('-mno-nontrapping-fptoint')
396397

test/code_size/embind_hello_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"a.html.gz": 380,
44
"a.js": 9718,
55
"a.js.gz": 4291,
6-
"a.wasm": 7626,
7-
"a.wasm.gz": 3444,
8-
"total": 17896,
9-
"total_gz": 8115
6+
"a.wasm": 7728,
7+
"a.wasm.gz": 3502,
8+
"total": 17998,
9+
"total_gz": 8173
1010
}

test/code_size/embind_val_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"a.html.gz": 380,
44
"a.js": 6849,
55
"a.js.gz": 2947,
6-
"a.wasm": 9506,
7-
"a.wasm.gz": 4872,
8-
"total": 16907,
9-
"total_gz": 8199
6+
"a.wasm": 9568,
7+
"a.wasm.gz": 4911,
8+
"total": 16969,
9+
"total_gz": 8238
1010
}

test/code_size/hello_webgl2_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"a.html.gz": 328,
44
"a.js": 4532,
55
"a.js.gz": 2315,
6-
"a.wasm": 10377,
7-
"a.wasm.gz": 6694,
8-
"total": 15363,
9-
"total_gz": 9337
6+
"a.wasm": 10402,
7+
"a.wasm.gz": 6704,
8+
"total": 15388,
9+
"total_gz": 9347
1010
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.html": 346,
33
"a.html.gz": 262,
4-
"a.js": 22232,
5-
"a.js.gz": 11612,
6-
"total": 22578,
7-
"total_gz": 11874
4+
"a.js": 22200,
5+
"a.js.gz": 11582,
6+
"total": 22546,
7+
"total_gz": 11844
88
}

test/code_size/hello_webgl_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"a.html.gz": 328,
44
"a.js": 4070,
55
"a.js.gz": 2158,
6-
"a.wasm": 10377,
7-
"a.wasm.gz": 6694,
8-
"total": 14901,
9-
"total_gz": 9180
6+
"a.wasm": 10402,
7+
"a.wasm.gz": 6704,
8+
"total": 14926,
9+
"total_gz": 9190
1010
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.html": 346,
33
"a.html.gz": 262,
4-
"a.js": 21758,
5-
"a.js.gz": 11442,
6-
"total": 22104,
7-
"total_gz": 11704
4+
"a.js": 21726,
5+
"a.js.gz": 11415,
6+
"total": 22072,
7+
"total_gz": 11677
88
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"a.html": 12589,
3-
"a.html.gz": 6888,
4-
"total": 12589,
5-
"total_gz": 6888
2+
"a.html": 12597,
3+
"a.html.gz": 6882,
4+
"total": 12597,
5+
"total_gz": 6882
66
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"a.html": 17246,
3-
"a.html.gz": 7510,
4-
"total": 17246,
5-
"total_gz": 7510
2+
"a.html": 17195,
3+
"a.html.gz": 7478,
4+
"total": 17195,
5+
"total_gz": 7478
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
128834
1+
129168

0 commit comments

Comments
 (0)