forked from emscripten-forge/recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Update emscripten (emscripten-forge#1241)" (emscripten-forge#…
- Loading branch information
1 parent
50b4171
commit 06eb6de
Showing
7 changed files
with
15 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 137dae4dbdf9a192551582cdae827b085510956f Mon Sep 17 00:00:00 2001 | ||
From 0170462a78e86de9ee95017bfa7e4a3dd620a375 Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Fri, 2 Jun 2023 11:59:32 -0700 | ||
Subject: [PATCH 1/6] Add back fs.findObject and fs.readFile in loadLibData | ||
Subject: [PATCH] Add back fs.findObject and fs.readFile in loadLibData | ||
|
||
See upstream PR: | ||
https://github.com/emscripten-core/emscripten/pull/19513 | ||
|
@@ -10,10 +10,10 @@ https://github.com/emscripten-core/emscripten/pull/19513 | |
1 file changed, 11 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/src/library_dylink.js b/src/library_dylink.js | ||
index aa90bea2b..1e67818a1 100644 | ||
index d7676cdc2..f616d230d 100644 | ||
--- a/src/library_dylink.js | ||
+++ b/src/library_dylink.js | ||
@@ -994,14 +994,23 @@ var LibraryDylink = { | ||
@@ -993,14 +993,23 @@ var LibraryDylink = { | ||
#endif | ||
|
||
// for wasm, we can use fetch for async, but for fs mode we can only imitate it | ||
|
@@ -40,5 +40,5 @@ index aa90bea2b..1e67818a1 100644 | |
var libFile = locateFile(libName); | ||
if (flags.loadAsync) { | ||
-- | ||
2.34.1 | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From e0cb884277200310eba263dcce5a7b1c4567bae6 Mon Sep 17 00:00:00 2001 | ||
From a8bdb50a29062ee70c8667e4fd94dde47917f8fa Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Fri, 19 May 2023 12:19:00 -0700 | ||
Subject: [PATCH 2/6] Add useful error when symbol resolution fails | ||
Subject: [PATCH] Add useful error when symbol resolution fails | ||
|
||
Currently if symbol resolution fails, we get: | ||
```js | ||
|
@@ -19,19 +19,19 @@ symbol. | |
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/src/library_dylink.js b/src/library_dylink.js | ||
index 1e67818a1..cea3ce05d 100644 | ||
index d96e6b425..7f63b5c5e 100644 | ||
--- a/src/library_dylink.js | ||
+++ b/src/library_dylink.js | ||
@@ -709,6 +709,9 @@ var LibraryDylink = { | ||
@@ -727,6 +727,9 @@ var LibraryDylink = { | ||
var resolved; | ||
stubs[prop] = (...args) => { | ||
resolved ||= resolveSymbol(prop); | ||
stubs[prop] = function() { | ||
if (!resolved) resolved = resolveSymbol(prop); | ||
+ if (!resolved) { | ||
+ throw new Error(`Dynamic linking error: cannot resolve symbol ${prop}`); | ||
+ } | ||
return resolved(...args); | ||
return resolved.apply(null, arguments); | ||
}; | ||
} | ||
-- | ||
2.34.1 | ||
2.25.1 | ||
|
87 changes: 0 additions & 87 deletions
87
recipes/recipes/emscripten_emscripten-wasm32/patches/0003-Changes-for-JSPI.patch
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...emscripten-wasm32/patches/0004-Upstream-PR-https-github.com-emscripten-core-emscrip.patch
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
...s/recipes/emscripten_emscripten-wasm32/patches/0005-Raise-when-no-argument-is-given.patch
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
recipes/recipes/emscripten_emscripten-wasm32/patches/0006-Load-dependent-libs-globally.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters