File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,21 @@ The easiest way to get started with this is to use one of the
29
29
## Building from source
30
30
31
31
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),
33
33
and then run:
34
34
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
37
39
```
38
40
39
41
This makes a directory called "sysroot", by default. See the top of the Makefile
40
42
for customization options.
41
43
42
44
To use the sysroot, use the ` --sysroot= ` option:
43
45
44
- ```
46
+ ``` sh
45
47
/path/to/wasm/supporting/c/compiler --sysroot=/path/to/the/newly/built/sysroot ...
46
48
```
47
49
You can’t perform that action at this time.
0 commit comments