Skip to content

Commit a3e86b9

Browse files
committed
Try proper fix
1 parent 09b2568 commit a3e86b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

emcc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,6 +2517,12 @@ def phase_linker_setup(options, state, newargs):
25172517
settings.SUPPORTS_PROMISE_ANY = feature_matrix.caniuse(feature_matrix.Feature.PROMISE_ANY)
25182518
if not settings.BULK_MEMORY:
25192519
settings.BULK_MEMORY = feature_matrix.caniuse(feature_matrix.Feature.BULK_MEMORY)
2520+
if settings.MEMORY64 and settings.MIN_NODE_VERSION < 200000:
2521+
logger.warning(
2522+
"Disabling bulk memory because it doesn't work correctly with wasm64 in Node.js < 20.0.\n"
2523+
"Set MIN_NODE_VERSION to 200000 or above to enable it."
2524+
)
2525+
settings.BULK_MEMORY = 0
25202526

25212527
if settings.AUDIO_WORKLET:
25222528
if settings.AUDIO_WORKLET == 1:

0 commit comments

Comments
 (0)