diff options
author | Antoine Soulier <asoulier@google.com> | 2024-03-27 10:57:48 -0700 |
---|---|---|
committer | Antoine SOULIER <103120622+asoulier@users.noreply.github.com> | 2024-03-27 11:01:57 -0700 |
commit | e54cdeb9f091e74dee680e342ab7f7c6e4a77281 (patch) | |
tree | 8cdcf121cf0a2627b9dd8a1eb6c2dac34ea37203 | |
parent | 16e082c9293c36a9ac207e4b685b576fb5c2d83a (diff) | |
download | liblc3-e54cdeb9f091e74dee680e342ab7f7c6e4a77281.tar.gz |
README: Add wasm compilation
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 : |