Rollup merge of #131830 - hoodmane:emscripten-wasm-eh, r=workingjubilee
Add support for wasm exception handling to Emscripten target This is a draft because we need some additional setting for the Emscripten target to select between the old exception handling and the new exception handling. I don't know how to add a setting like that, would appreciate advice from Rust folks. We could maybe choose to use the new exception handling if `Ctarget-feature=+exception-handling` is passed? I tried this but I get errors from llvm so I'm not doing it right.
This commit is contained in:
commit
4e4a93c2dd
21 changed files with 131 additions and 10 deletions
|
|
@ -0,0 +1,6 @@
|
|||
# `emscripten-wasm-eh`
|
||||
|
||||
Use the WebAssembly exception handling ABI to unwind for the
|
||||
`wasm32-unknown-emscripten`. If compiling with this setting, the `emcc` linker
|
||||
should be invoked with `-fwasm-exceptions`. If linking with C/C++ files, the
|
||||
C/C++ files should also be compiled with `-fwasm-exceptions`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue