From d5ee4ecdb86dca37153466d4a2537990b5a1f258 Mon Sep 17 00:00:00 2001 From: gautric Date: Fri, 18 Feb 2022 09:56:31 +0100 Subject: [PATCH] add build instruction into README --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 14ec987..c0a6bc3 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,35 @@ 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". +## Clone + +This repository uses git submodule, to clone it you need use the command below : + +```shell script +git clone --recursive git@github.com:WebAssembly/wasi-sdk.git +``` + +## Requirements + +The Wasm-sdk's build process needs some packages : + +* `cmake` +* `clang` +* `ninja` + +Please refer to your OS documentation to install those packages. + +## Build + +To build the full package + +```shell script +cd wasi-sdk +NINJA_FLAGS=-v make package +``` + +The built package can be found into `dist` directory. + ## Install A typical installation from the release binaries might look like the following: