Skip to content

Commit

Permalink
Add beginner-level documentation for installation and use
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown committed Mar 24, 2020
1 parent 1731513 commit 8cf4a41
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ One could also use a standard Clang installation, build a sysroot from the
sources mentioned above, and compile with
"--target=wasm32-wasi --sysroot=/path/to/sysroot".

## Install

A typical installation from the release binaries might look like the following:
```shell script
wget https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-[version]/wasi-sdk-[version]-linux.tar.gz
tar xvf wasi-sdk-[version]-linux.tar.gz
sudo cp -r wasi-sdk-[version] /opt/wasi-sdk
```

## Use

Use the clang installed in the wasi-sdk directory:
```shell script
PATH="/opt/wasi-sdk/bin:${PATH}"
clang foo.c -o foo.wasm
```
Note that, with this installation, the used includes/libraries/etc. are in `/opt/wasi-sdk/share/wasi-sysroot`.

## Notes for Autoconf

Upstream autoconf now
Expand Down

0 comments on commit 8cf4a41

Please sign in to comment.