Closed MaxDesiatov closed 5 months ago
@swift-ci test
Adding CI jobs for WASI is currently blocked by https://github.com/apple/swift/pull/72728.
@swift-ci test
@swift-ci test
@swift-ci please test
@glessard Yes, we have multi-threaded wasi target as a separate triple (wasm32-unknown-wasip1-threads) from the non-threaded one (wasm32-unknown-wasi)
LGTM. Do we have multi-threaded wasi support on swift/main?
Yes, but that requires a special Swift SDK to be installed from artifacts built by the SwiftWasm org. There's ongoing work to build that on Swift CI directly in https://github.com/apple/swift/pull/72728.
Quoting the wasi.dev landing page:
Currently support for WASI in Swift is based on
wasi-libc
.Adding support for
wasi-libc
mostly amounted to excluding unsupported errnos, adding TLS dictionary storage shim for single-threaded environment, and adding constants in C headers for macros that Clang importer currently doesn't support.