wasm-micro-runtime/core/iwasm/libraries
Gavin Hayes d8ee771e28
Add Cosmopolitan Libc Platform (#2598)
This PR adds the Cosmopolitan Libc platform enabling compatibility with multiple
x86_64 operating systems with the same binary. The platform is similar to the
Linux platform, but for now only x86_64 with interpreter modes are supported.

The only major change to the core is `posix.c/convert_errno()` was rewritten to use
a switch statement. With Cosmopolitan errno values depend on the currently
running operating system, and so they are non-constant and cannot be used in array
designators. However, the `cosmocc` compiler allows non-constant case labels in
switch statements, enabling the new version.

And updated wamr-test-suites script to add `-j <platform>` option. The spec tests
can be ran via `CC=cosmocc ./test_wamr.sh -j cosmopolitan -t classic-interp`
or `CC=cosmocc ./test_wamr.sh -j cosmopolitan -t fast-interp`.
2023-10-04 21:55:37 +08:00
..
debug-engine Update release notes and fix issues reported by Coverity (#1813) 2022-12-20 14:37:07 +08:00
lib-pthread Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
lib-rats sgx-ra: Disable the building of samples (#2507) 2023-08-28 09:42:16 +08:00
lib-socket Fix wasi-sockets tests (#2389) 2023-07-30 19:34:09 +08:00
lib-wasi-threads Refactor stress tests to make them runnable in reactor mode (#2614) 2023-10-04 08:10:10 +08:00
libc-builtin Clear some warnings and enable -Werror for NuttX (#1756) 2022-11-28 09:44:33 +08:00
libc-emcc Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
libc-uvwasi Update libuv version to v1.46.0 (#2405) 2023-07-31 18:32:20 +08:00
libc-wasi Add Cosmopolitan Libc Platform (#2598) 2023-10-04 21:55:37 +08:00
thread-mgr Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasi-nn Remove module instance from hashmap in wasi_nn_destroy (#2613) 2023-10-03 08:33:11 +08:00