Skip to content

Tell emscripten to remove exception handling code when the panic runtime is used #36900

Closed
@brson

Description

@brson

emcc can remove invoke instructions during final translation. So when compiling with -C panic-runtime=abort, in order to strip the unwinding code out of std, we should pass the appropriate flags to emcc. This can probably be done be setting the link_args from the panic_abort crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationE-help-wantedCall for participation: Help is requested to fix this issue.O-emscriptenTarget: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!O-wasmTarget: WASM (WebAssembly), http://webassembly.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions