-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change runs the pthread tests available in `libc-test` when `THREAD_MODEL=posix`. This is currently a work-in-progress, since there are custom build steps necessary to get this all to (mostly) work. Currently this might look like: ```console $ cd test $ make run THREAD_MODEL=posix \ ENGINE=~/Code/wasmtime/target/debug/wasmtime CC=~/Code/llvm-project/build/bin/clang ``` What are the current issues? - this requires a special build of Wasmtime that includes the `wasi-threads` implementation; this is shown above as built from source - under `THREAD_MODEL=posix`, this requires Clang to understand the `--export-memory` flag which, though merged in https://reviews.llvm.org/D135898, is not available for download yet (but can be built from latest source as shown above) - not all of the tests yet pass and some do not build: this is to be expected in several cases (PI? robust?) but there is perhaps more that can be done here to enable more of the pthread API. Only the working tests are included in this commit.
- Loading branch information
Showing
1 changed file
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters