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

2 similar comments
@kateinoigakukun
Copy link
Member Author

@swift-ci test

@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 kateinoigakukun force-pushed the pr-f8de02d185c8183f6a63950b75731c051be41c42 branch from a46f221 to 30ec87a Compare December 3, 2025 11:45
@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