Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Clang builtins for threads targets #494

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Oct 10, 2024

This change adds the libclang_rt.builtins-wasm32.a to the appropriate Clang directory for the threaded variants of the WASI targets (lib/wasi-threads, lib/wasip1-threads). This fixes WebAssembly/wasi-libc#543.

@abrown abrown marked this pull request as ready for review October 16, 2024 16:41
@alexcrichton
Copy link
Collaborator

Would it be possible to add some tests for this? (or is it known why this didn't show up on CI?)

This change adds the `libclang_rt.builtins-wasm32.a` to the appropriate
Clang directory for the threaded variants of the WASI targets
(`lib/wasi-threads`, `lib/wasip1-threads`). This fixes #543.
This uses the `__floatditf` function which was reported as an issue in
[wasi-libc#543]. Compiling and running this test should prove that the
builtins are available in the `wasm32-*-threads` targets as long as the
tests use those targets (they do, right?).

[wasi-libc#543]: WebAssembly/wasi-libc#543
The `__floatdidf` builtin uses a more conventional type--`double`--which
means we don't have to guess at the representation of `tf_float`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prepare libclang_rt.builtins-wasm32.a on wasm32-wasi-threads
3 participants