]> git.proxmox.com Git - wasi-libc.git/commitdiff
Document that WASM_NM and WASM_AR may also be required
authorFrank Denis <github@pureftpd.org>
Mon, 6 May 2019 11:13:44 +0000 (13:13 +0200)
committerDan Gohman <sunfish@mozilla.com>
Mon, 6 May 2019 20:32:45 +0000 (13:32 -0700)
Also make it explicit that we currently need clang 8+

Fixes #44

README.md

index b9506dfaf9ff220aae0cce214ced0e1bcda9866d..ba89692dcedd481ffacf68749bd29f31b3bc5e27 100644 (file)
--- a/README.md
+++ b/README.md
@@ -29,11 +29,13 @@ The easiest way to get started with this is to use one of the
 ## Building from source
 
 To build a WASI sysroot from source, obtain a WebAssembly-supporting C compiler
-(currently this is only clang, though we'd like to support other compilers as well),
+(currently this is only clang 8+, though we'd like to support other compilers as well),
 and then run:
 
-```
-make WASM_CC=/path/to/wasm/supporting/c/compiler
+```sh
+make WASM_CC=/path/to/clang/with/wasm/support \
+     WASM_AR=/path/to/llvm-ar \
+     WASM_NM=/path/to/llvm-nm
 ```
 
 This makes a directory called "sysroot", by default. See the top of the Makefile
@@ -41,7 +43,7 @@ for customization options.
 
 To use the sysroot, use the `--sysroot=` option:
 
-```
+```sh
 /path/to/wasm/supporting/c/compiler --sysroot=/path/to/the/newly/built/sysroot ...
 ```