aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Soulier <asoulier@google.com>2024-03-27 10:57:48 -0700
committerAntoine SOULIER <103120622+asoulier@users.noreply.github.com>2024-03-27 11:01:57 -0700
commite54cdeb9f091e74dee680e342ab7f7c6e4a77281 (patch)
tree8cdcf121cf0a2627b9dd8a1eb6c2dac34ea37203
parent16e082c9293c36a9ac207e4b685b576fb5c2d83a (diff)
downloadliblc3-e54cdeb9f091e74dee680e342ab7f7c6e4a77281.tar.gz
README: Add wasm compilation
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index f99f4c0..6cb2a7e 100644
--- a/README.md
+++ b/README.md
@@ -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 :