Skip to content

Commit ef179d3

Browse files
committed
Emscripten 4.0.0
1 parent 4c9b38b commit ef179d3

6 files changed

+14
-14
lines changed

Makefile.envs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export PYVERSION ?= 3.12.7
2-
export PYODIDE_EMSCRIPTEN_VERSION ?= 3.1.74
2+
export PYODIDE_EMSCRIPTEN_VERSION ?= 4.0.0
33
export PYODIDE_VERSION ?= 0.28.0.dev0
44
export PYODIDE_ABI_VERSION ?= 2025_0
55

emsdk/patches/0001-Add-back-fs.findObject-and-fs.readFile-in-loadLibDat.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 380817b0a87d17670635e7d80b123b904a1ff72d Mon Sep 17 00:00:00 2001
1+
From 1e448f3d748523bcb5635ed29c6557f18693dbb5 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 2 Jun 2023 11:59:32 -0700
44
Subject: [PATCH 1/5] Add back fs.findObject and fs.readFile in loadLibData

emsdk/patches/0002-Add-useful-error-when-symbol-resolution-fails.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 264239a38b6093ee50171ae4c8b648d093ace7a1 Mon Sep 17 00:00:00 2001
1+
From c0af4cd7c23c2677ac83a0a4dbafaddc6d78c7f6 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 19 May 2023 12:19:00 -0700
44
Subject: [PATCH 2/5] Add useful error when symbol resolution fails

emsdk/patches/0003-Changes-for-JSPI.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From d03c660e0a5ca58581c173f877ef9264a568adb1 Mon Sep 17 00:00:00 2001
1+
From 4e69d2ad44d6b1a4bf0707827cdd2442bca7fdb5 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Thu, 22 Jun 2023 18:53:22 -0700
44
Subject: [PATCH 3/5] Changes for JSPI
@@ -11,10 +11,10 @@ Subject: [PATCH 3/5] Changes for JSPI
1111
4 files changed, 9 insertions(+), 3 deletions(-)
1212

1313
diff --git a/src/library.js b/src/library.js
14-
index 607e18e68..cfa2e49a1 100644
14+
index 14c45f6b1..be4d780d3 100644
1515
--- a/src/library.js
1616
+++ b/src/library.js
17-
@@ -492,7 +492,7 @@ addToLibrary({
17+
@@ -460,7 +460,7 @@ addToLibrary({
1818
#if EXCEPTION_STACK_TRACES
1919
throw new EmscriptenSjLj;
2020
#else
@@ -45,10 +45,10 @@ index 31ae90318..f06f00904 100644
4545
#endif
4646
#if !DISABLE_EXCEPTION_CATCHING
4747
diff --git a/src/parseTools.mjs b/src/parseTools.mjs
48-
index fa6da8556..5a0a48548 100644
48+
index a57593562..976168049 100644
4949
--- a/src/parseTools.mjs
5050
+++ b/src/parseTools.mjs
51-
@@ -585,7 +585,7 @@ function makeThrow(excPtr) {
51+
@@ -589,7 +589,7 @@ function makeThrow(excPtr) {
5252
}
5353
return `assert(false, '${assertInfo}');`;
5454
}
@@ -58,7 +58,7 @@ index fa6da8556..5a0a48548 100644
5858

5959
function storeException(varName, excPtr) {
6060
diff --git a/src/preamble.js b/src/preamble.js
61-
index d097c857f..6a217e022 100644
61+
index 2a422c490..0fd120445 100644
6262
--- a/src/preamble.js
6363
+++ b/src/preamble.js
6464
@@ -14,6 +14,10 @@
@@ -72,7 +72,7 @@ index d097c857f..6a217e022 100644
7272
#if RELOCATABLE
7373
{{{ makeModuleReceiveWithVar('dynamicLibraries', undefined, '[]', true) }}}
7474
#endif
75-
@@ -1038,6 +1042,7 @@ function getWasmImports() {
75+
@@ -1012,6 +1016,7 @@ function getWasmImports() {
7676
#endif // WASM_ASYNC_COMPILATION
7777

7878
var info = getWasmImports();

emsdk/patches/0004-Raise-when-no-argument-is-given.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 1f4e59e310a9dca31087987cf654333d29e42aad Mon Sep 17 00:00:00 2001
1+
From 1f225481fb33cc6df688262eb2e952994616296e Mon Sep 17 00:00:00 2001
22
From: ryanking13 <[email protected]>
33
Date: Sat, 20 Jan 2024 19:02:32 +0900
44
Subject: [PATCH 4/5] Raise when no argument is given
@@ -13,10 +13,10 @@ Upstream issue: https://github.com/emscripten-core/emscripten/issues/21116
1313
1 file changed, 3 insertions(+)
1414

1515
diff --git a/emcc.py b/emcc.py
16-
index 2925985f2..c759defb5 100644
16+
index a556a6f95..fd7f9195a 100644
1717
--- a/emcc.py
1818
+++ b/emcc.py
19-
@@ -662,6 +662,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
19+
@@ -655,6 +655,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
2020
print(libname)
2121
return 0
2222

emsdk/patches/0005-sdl2_image-wasm-sjlj-variant.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4fb563293d2d52072b6a16b5b7d18021a339eaee Mon Sep 17 00:00:00 2001
1+
From 124b0986a26ebd8a5533780248fc523ff6875dac Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 31 Jan 2025 11:42:59 +0100
44
Subject: [PATCH 5/5] sdl2_image wasm-sjlj variant

0 commit comments

Comments
 (0)