README: Add wasm compilation

This commit is contained in:
Antoine Soulier
2024-03-27 10:57:48 -07:00
committed by Antoine SOULIER
parent 16e082c929
commit e54cdeb9f0

View File

@@ -61,6 +61,20 @@ $ make -j CC=path_to_android_ndk_prebuilt/toolchain-prefix-clang LIBC=bionic
Compiled library will be found in `bin` directory.
#### Web Assembly (WASM)
Web assembly compilation is supported using LLVM WebAssembly backend.
Installation of LLVM compiler and linker is needed:
```sh
# apt install clang lld
```
The webasm object is compiled using:
```sh
$ make CC="clang --target=wasm32"
```
## Tools
Tools can be all compiled, while invoking `make` as follows :