Emscripten no longer export HEAPU8
by default after v4.0.7
#278
-
I have tried to setup |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Found that |
Beta Was this translation helpful? Give feedback.
-
https://github.com/subframe7536/sqwab/actions/runs/15345257994/job/43179989242#step:9:223
|
Beta Was this translation helpful? Give feedback.
-
AFAIK, all you need to do is build with:
That resolved this issue for our build (unrelated to wa-sqlite, but we found out about this breaking change from this thread). |
Beta Was this translation helpful? Give feedback.
-
I added HEAPU8 and HEAP32 to src/extra_exported_runtime_methods.json, and I think that fixes the build with EMSDK 4.0.7+. @subframe7536 I think the change in your sqwab fork would have worked except it was applied to the wrong file, as @khanhicetea suggests. Note that sqwab already has a mechanism to add or edit files by putting them under overlay.wa-sqlite, which might be easier than changing the workflow. |
Beta Was this translation helpful? Give feedback.
I added HEAPU8 and HEAP32 to src/extra_exported_runtime_methods.json, and I think that fixes the build with EMSDK 4.0.7+.
@subframe7536 I think the change in your sqwab fork would have worked except it was applied to the wrong file, as @khanhicetea suggests. Note that sqwab already has a mechanism to add or edit files by putting them under overlay.wa-sqlite, which might be easier than changing the workflow.