wasi-libc/libc-bottom-half/headers/public/wasi
Alex Crichton ff938e370e Start renaming preview1 to p1 and preview2 to p2 (#478)
* Start renaming preview1 to p1 and preview2 to p2

This is an initial start at renaming the "preview" terminology in WASI
targets to "pX". For example the `wasm32-wasi` target should transition
to `wasm32-wasip1`, `wasm32-wasi-preview2` should transition to
`wasm32-wasip2`, and `wasm32-wasi-threads` should transition to
`wasm32-wasip1-threads`. This commit applies a few renames in the
`Makefile` such as:

* `WASI_SNAPSHOT` is now either "p1" or "p2"
* The default p2 target triple is now `wasm32-wasip2` instead of
  `wasm32-wasi-preview2` (in the hopes that it's early enough to change
  the default).
* Bindings for WASIp2 were renamed from "preview2" terminology to "wasip2".
* The expected-defines files are renamed and the logic of which
  expectation was used has been updated slightly.

With this commit the intention is that non-preview2 defaults do not
change. For example the default build still produces a `wasm32-wasi`
sysroot. If `TARGET_TRIPLE=wasm32-wasip1` is passed, however, then that
sysroot is produced instead. Similarly a `THREAD_MODEL=posix` build
produces a `wasm32-wasi-threads` sysroot target but you can now also
pass `TARGET_TRIPLE=wasm32-wasip1-threads` to rename the sysroot.

My hope is to integrate this into the wasi-sdk repository and build a
dual sysroot for these new targets for a release or two so both are
supported and then in the future the defaults can be switched away from
`wasm32-wasi` to `wasm32-wasip1` as built-by-default.

* Update builds in CI

* Update test workflow

* Fix test for wasm32-wasip1-threads

* Make github actions rules a bit more readable
2024-06-25 12:13:35 +02:00
..
api.h __wasi_thread_spawn: stop truncating the return value (#353) 2022-12-07 09:18:28 -08:00
libc-environ.h Also add a way to read environ without triggering eager init. 2021-05-25 15:25:05 -07:00
libc-find-relpath.h Use MUSL's weak* feature in bottom half (#306) 2022-07-26 14:15:12 -07:00
libc-nocwd.h AT_FDCWD support. 2021-02-05 06:41:53 -08:00
libc.h Convert preopen initialization to be lazy. (#408) 2023-05-03 12:44:21 -07:00
wasip2.h Start renaming preview1 to p1 and preview2 to p2 (#478) 2024-06-25 12:13:35 +02:00