-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Support wasm exception handling for Emscripten target #112195
Copy link
Copy link
Closed
Labels
A-panicArea: Panicking machineryArea: Panicking machineryO-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/
Metadata
Metadata
Assignees
Labels
A-panicArea: Panicking machineryArea: Panicking machineryO-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently the Rust Emscripten target supports js exception handling. I've been trying to get it to support also wasm exception handling. The patch to get it to exclusively use wasm exception handling is quite small. The following suffices:
Patch
I'm not sure what the best way is to add support for a choice between these two options.
@aheejin Is there any way to turn
-enable-emscripten-cxx-exceptionsback off by adding another argument? It would be convenient to be able to inject-mllvm -disable-emscripten-cxx-exceptions -mllvm -wasm-enable-sjljand get wasm exceptions to work...