From d900a5f6efd78055017e089af4df0d89c18298de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Van=20der=20Auwermeulen=20Gr=C3=A9goire?= Date: Mon, 3 Jun 2019 21:55:50 +0200 Subject: [PATCH] Update WASI-tutorial.md consistent --- docs/WASI-tutorial.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/WASI-tutorial.md b/docs/WASI-tutorial.md index 170d976d44..b3caa59255 100644 --- a/docs/WASI-tutorial.md +++ b/docs/WASI-tutorial.md @@ -80,16 +80,16 @@ compile our program like so: $ clang demo.c -o demo.wasm ``` -If you would want to extract it elsewhere, you can specify the directory like so +If you would want to extract it elsewhere, you can specify the sysroot directory like so ``` $ clang demo.c --sysroot -o demo.wasm ``` -If you're using the wasi-sdk, the sysroot folder is located in `opt/wasi-sdk/share/sysroot/` on Linux and mac. +If you're using the wasi-sdk, the sysroot directory is located in `opt/wasi-sdk/share/sysroot/` on Linux and mac. -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" +This is just regular clang, configured to use +a WebAssembly target and sysroot. The output name specified with the "-o" flag can be anything you want, and *does not* need to contain the `.wasm` extension. In fact, the output of clang here is a standard WebAssembly module: