From 4cfa1dbf111b777e41ef40e68f64d019da281bef Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 21 Aug 2025 20:31:44 +0100 Subject: README: Update for newer wasi-sdk Starting with wasi-sdk version 26 the layout of the files has changed. We now have something like /usr/bin/../lib/clang/20/lib/wasm32-unknown-wasi: total 444 -rw-r--r-- 1 1001 118 452798 Jul 27 22:33 libclang_rt.builtins.a /usr/bin/../lib/clang/20/lib/wasm32-unknown-wasip1: total 444 -rw-r--r-- 1 1001 118 452798 Jul 27 22:33 libclang_rt.builtins.a /usr/bin/../lib/clang/20/lib/wasm32-unknown-wasip1-threads: total 448 -rw-r--r-- 1 1001 118 455618 Jul 27 22:33 libclang_rt.builtins.a /usr/bin/../lib/clang/20/lib/wasm32-unknown-wasip2: total 444 -rw-r--r-- 1 1001 118 452798 Jul 27 22:33 libclang_rt.builtins.a /usr/bin/../lib/clang/20/lib/wasm32-unknown-wasi-threads: total 448 -rw-r--r-- 1 1001 118 455618 Jul 27 22:33 libclang_rt.builtins.a I.e. we no longer create a wasi directory. We now have multiple wasm targets each in their own directory. Signed-off-by: Andrew Clayton --- README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README b/README index 0a0345c..5f6c46f 100644 --- a/README +++ b/README @@ -48,6 +48,10 @@ libclang_rt.builtins-wasm32.a For either of the above you will also need the libclang wasm32-wasi runtime library, this can be done with +# For wasi-sdk >= 26 +# wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-27/libclang_rt-27.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir)) + +# For older wasi-sdk # mkdir $(dirname $(clang -print-runtime-dir))/wasi && wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/libclang_rt.builtins-wasm32-wasi-25.0.tar.gz | tar --no-same-owner --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir))/wasi That will install the following, path may vary slightly -- cgit