diff --git a/docs/WASI-tutorial.md b/docs/WASI-tutorial.md index 3cbc2cfd5b..cd0dc3477f 100644 --- a/docs/WASI-tutorial.md +++ b/docs/WASI-tutorial.md @@ -77,9 +77,11 @@ which is configured to target WASI and use the WASI sysroot by default, so we ca compile our program like so: ``` -$ clang demo.c -o demo.wasm +$ clang demo.c --sysroot -o demo.wasm ``` +The sysroot is folder is located in `opt/wasi-sdk/share/sysroot/`. + A few things to note here. First, this is just regular clang, configured to use a WebAssembly target and sysroot. Second, the output name specified with the "-o" flag can be anything you want, and *does not* need to contain the `.wasm` extension.