Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite69306f

Browse files
authored
gh-84461: Build Emscripten with WASM BigInt support (#94219)
1 parent51fd4de commite69306f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

‎Tools/wasm/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ popd
9898
```
9999

100100
```shell
101-
node --experimental-wasm-threads --experimental-wasm-bulk-memory builddir/emscripten-node/python.js
101+
node --experimental-wasm-threads --experimental-wasm-bulk-memory--experimental-wasm-bigintbuilddir/emscripten-node/python.js
102102
```
103103

104+
(``--experimental-wasm-bigint`` is not needed with recent NodeJS versions)
105+
104106
#wasm32-emscripten limitations and issues
105107

106108
Emscripten before 3.1.8 has known bugs that can cause memory corruption and

‎configure‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,9 @@ AS_CASE([$ac_sys_system],
20282028
dnl Start with 20 MB and allow to grow
20292029
AS_VAR_APPEND([LDFLAGS_NODIST],[" -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"])
20302030
2031+
dnl map int64_t and uint64_t to JS bigint
2032+
AS_VAR_APPEND([LDFLAGS_NODIST],[" -sWASM_BIGINT"])
2033+
20312034
dnl Include file system support
20322035
AS_VAR_APPEND([LDFLAGS_NODIST],[" -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"])
20332036

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp