Skip to content

Commit

Permalink
Add missing architecture URL part to the installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
seclerp authored Sep 13, 2024
1 parent 754aec3 commit 1fc85c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,19 @@ see [RELEASING.md](RELEASING.md).
A typical installation from the release binaries might look like the following:

```shell script
export WASI_VERSION=20
export WASI_ARCH=x86_64
export WASI_VERSION=24
export WASI_VERSION_FULL=${WASI_VERSION}.0
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
tar xvf wasi-sdk-${WASI_VERSION_FULL}-linux.tar.gz
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-linux.tar.gz
tar xvf wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-linux.tar.gz
```

## Use

Use the clang installed in the `wasi-sdk` directory:

```shell script
export WASI_SDK_PATH=`pwd`/wasi-sdk-${WASI_VERSION_FULL}
export WASI_SDK_PATH=`pwd`/wasi-sdk-${WASI_VERSION_FULL}-{WASI_ARCH}-linux
CC="${WASI_SDK_PATH}/bin/clang --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot"
$CC foo.c -o foo.wasm
```
Expand Down

0 comments on commit 1fc85c8

Please sign in to comment.