This repository was archived by the owner on Oct 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/w
7878```
7979
8080Next Compile the C demo Wasm Modules to ` .wasm ` files. This requires at least
81- the following; make and clang, llvm, compiler-rt, and lld from LLVM 8 .0+
81+ the following; make and clang, llvm, compiler-rt, and lld from LLVM 9 .0+
8282
8383``` shell
8484$ cd unit-wasm
@@ -108,6 +108,13 @@ Adjust the tar '-C ...' option accordingly below...
108108wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | sudo tar -xvzf - -C /usr/lib/llvm-11/lib/clang/11.0.1
109109```
110110
111+ With recent enough versions of Clang (that support the -print-runtime-dir
112+ option) you can use the following command (as root)
113+
114+ ``` shell
115+ wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $( dirname $( clang -print-runtime-dir) )
116+ ```
117+
111118Then try again...
112119
113120If everything built OK then you should have the following two WASM modules
You can’t perform that action at this time.
0 commit comments