]> git.proxmox.com Git - wasi-libc.git/blame - README.md
Add initial files.
[wasi-libc.git] / README.md
CommitLineData
dcf13b6f
DG
1# WebAssembly Reference Sysroot
2
3Caution: This is currently quite experimental and not generally usable yet!
4
5## What is this?
6
7This is a "reference sysroot", which is meant to be part of a common C ABI
8that can be shared across C libraries and compilers. While it's intened to
9(eventually) be usable in its own right, we fully expect other
10implementations to be used in practice by many different systems, though
11we do hope that in those cases, this library defines a useful ABI that can
12be followed.
13
14## Usage
15
16Obtain a WebAssembly-supporting C compiler, and then run:
17
18```
19make WASM_CC=/path/to/wasm/supporting/c/compiler
20```
21
22This makes a directory called "sysroot", by default. See the top of the Makfile
23for customization options.
24
25To use the sysroot, use the `--sysroot=` option:
26
27```
28/path/to/wasm/supporting/c/compiler --sysroot=/path/to/the/newly/built/sysroot ...
29``
30
31to run the compiler using the newly built sysroot.