Closed
Description
As part of using the wasm backend by default, we should make it easy for users to download and install it. This means having emsdk install upstream LLVM instead of fastcomp.
Steps:
- Add wasm backend to emsdk behind a flag
- Switch to wasm backend by default (fastcomp behind a flag)
- Deprecate fastcomp backend
There's the question of how to organize installing the two backends. The options I know of are
- Download only one backend
- need to rerun
emsdk install
to download the other backend later (which is bound to be a frustrating UX) - need to
emsdk activate
to change backends
- need to rerun
- Download both backends
- no need to download/compile the other backend later, but instead frontloads that cost
- may need to edit
~/.emscripten
to change theLLVM_ROOT
variable
- Download one LLVM that has both backends enabled
- integrate upstream changes into fastcomp branch to get latest wasm backend, build fastcomp with js and wasm32 targets enabled
- need to merge regularly going forward
- changing backends is a matter of changing
~/.emscripten
to set... something. CurrentlyEMCC_WASM_BACKEND
is an environment flag, can.emscripten
set that?
Metadata
Metadata
Assignees
Labels
No labels