Commit 2f6ce57
committed
build: add cmake based build infrastructure
Rather than rely on make, use CMake to generate the rules in the build
system of choice. This allows building with `make` or `ninja`, and
enables building the WASI libc on Windows.
```
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=clang -DCMAKE_SYSTEM_NAME=wasi -DCMAKE_MODULE_PATH=cmake/Modules
ninja -C build install
```1 parent a280fea commit 2f6ce57
File tree
3 files changed
+1126
-1
lines changed- cmake/Modules/Platform
3 files changed
+1126
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
0 commit comments