Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b8e1fb

Browse files
committedMay 6, 2019
Document that WASM_NM and WASM_AR may also be required
Also make it explicit that we currently need clang 8+ Fixes #44
1 parent 8e8cc34 commit 7b8e1fb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,21 @@ The easiest way to get started with this is to use one of the
2929
## Building from source
3030

3131
To build a WASI sysroot from source, obtain a WebAssembly-supporting C compiler
32-
(currently this is only clang, though we'd like to support other compilers as well),
32+
(currently this is only clang 8+, though we'd like to support other compilers as well),
3333
and then run:
3434

35-
```
36-
make WASM_CC=/path/to/wasm/supporting/c/compiler
35+
```sh
36+
make WASM_CC=/path/to/clang/with/wasm/support \
37+
WASM_AR=/path/to/llvm-ar \
38+
WASM_NM=/path/to/llvm-nm
3739
```
3840

3941
This makes a directory called "sysroot", by default. See the top of the Makefile
4042
for customization options.
4143

4244
To use the sysroot, use the `--sysroot=` option:
4345

44-
```
46+
```sh
4547
/path/to/wasm/supporting/c/compiler --sysroot=/path/to/the/newly/built/sysroot ...
4648
```
4749

0 commit comments

Comments
 (0)
Please sign in to comment.