summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2025-08-21 20:31:44 +0100
committerAndrew Clayton <a.clayton@nginx.com>2025-08-21 20:31:44 +0100
commit4cfa1dbf111b777e41ef40e68f64d019da281bef (patch)
tree89b5ebc596ab4b51f5125cc64103cf8876ed1898
parent5e6b6ed2b02ce4503b4373fe2c92d2f59bfe849c (diff)
downloadproject_blackbird-4cfa1dbf111b777e41ef40e68f64d019da281bef.tar.gz
project_blackbird-4cfa1dbf111b777e41ef40e68f64d019da281bef.tar.bz2
README: Update for newer wasi-sdkHEADmaster
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 <a.clayton@nginx.com>
-rw-r--r--README4
1 files changed, 4 insertions, 0 deletions
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