Skip to content

Conversation

@aheejin
Copy link
Member

@aheejin aheejin commented Sep 24, 2024

Previously -sPURE_WASI disabled SjLj support because it uses the JS-based simultion, but accidentally also disabled Wasm SjLj. This makes setting PURE_WASI disable SjLj support by default only when Wasm EH is not used. Also this does not force disabling; it only makes the default SjLj setting to be disabled, meaning you can experiment with it if you manually set -sSUPPORT_LONGJMP to be other values.

Fixes #22566.

Previously `-sPURE_WASI` disabled SjLj support because it uses the
JS-based simultion, but accidentally also disabled Wasm SjLj. This makes
setting `PURE_WASI` disable SjLj support by default only when Wasm EH is
not used. Also this does not force disabling; it only makes the default
SjLj setting to be disabled, meaning you can experiment with it if you
manually set `-sSUPPORT_LONGJMP` to be other values.

Fixes emscripten-core#22566.
@aheejin aheejin requested a review from sbc100 September 24, 2024 03:47
@aheejin aheejin merged commit 20697f1 into emscripten-core:main Sep 24, 2024
28 checks passed
@aheejin aheejin deleted the pure_wasi_sjlj branch September 24, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

__wasm_longjmp not linked from compiler_rt-wasm-sjlj when using WASM standards flags

2 participants