Merge remote-tracking branch 'origin/pr/1048'

This commit is contained in:
Julian Ospald 2024-04-27 16:09:04 +08:00
commit 7daf199610
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43

View File

@ -559,19 +559,24 @@ The next sections explain how to install each cross bindist.
### GHC JS cross bindists (experimental) ### GHC JS cross bindists (experimental)
You need the required emscripten JS toolchain: You need the required emscripten JS toolchain. GHC JS cross bindists might require you to install a specific
version of emscripten. If that is the case, then ghcup will display the required emscripten version in the
pre install message. You can use the following commands to install the emscripten toolchain on your system,
substituting the required version for the bindist that you want to install.
(Cf. [GHC-MR 10918](https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10918))
```sh ```sh
git clone https://github.com/emscripten-core/emsdk.git git clone https://github.com/emscripten-core/emsdk.git
cd emsdk cd emsdk
./emsdk install latest ./emsdk install VERSION
./emsdk activate latest ./emsdk activate VERSION
source ./emsdk_env.sh source ./emsdk_env.sh
``` ```
Instructions are also here: [Download and install — Emscripten 3.1.43-git (dev) documentation](https://emscripten.org/docs/getting_started/downloads.html). Instructions are also here: [Download and install — Emscripten documentation](https://emscripten.org/docs/getting_started/downloads.html).
To install we need to invoke ghcup like so: To install you can either use the tui interface by invoking `emconfigure ghcup tui` or
you can install directly like so:
```sh ```sh
emconfigure ghcup install ghc --set javascript-unknown-ghcjs-9.6.2 emconfigure ghcup install ghc --set javascript-unknown-ghcjs-9.6.2