Skip to content

Conversation

@kateinoigakukun
Copy link
Member

SWIFT_CORELIBS_FOUNDATION_HAS_THREADS is not defined for all WASI targets now but we do have pthread support for wasip1-threads target. _runtime(_multithreaded) check is more appropriate here to detect multithreaded runtime support. We can remove SWIFT_CORELIBS_FOUNDATION_HAS_THREADS definition later.

`SWIFT_CORELIBS_FOUNDATION_HAS_THREADS` is not defined for all
WASI targets now but we do have pthread support for wasip1-threads
target. `_runtime(_multithreaded)` check is more appropriate here to
detect multithreaded runtime support. We can remove
`SWIFT_CORELIBS_FOUNDATION_HAS_THREADS` definition later.
@kateinoigakukun
Copy link
Member Author

@swift-ci test

Recent wasi-libc versions include pthreads support for wasip1-threads
target and a stub implementation for wasip1 target.
@kateinoigakukun
Copy link
Member Author

@swift-ci test

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.

1 participant