mirror of
https://github.com/apple/swift-nio.git
synced 2026-05-20 20:30:36 +00:00
cc38f7abcf
Fix Swift for WebAssembly compilation in NIOFoundationCompat. ### Motivation: NIO is a common dependency, and it is important to enable compiling NIO using Swift for WebAssembly. This PR fixes compilation for NIOFoundationCompat. ### Modifications: - Fix NIOFoundationCompat compilation ### Result: With these changes, the following build commands succeed: ✅ ``` swift build --swift-sdk wasm32-unknown-wasip1-threads --target NIOCore swift build --swift-sdk wasm32-unknown-wasip1-threads --target NIOFoundationCompat ``` ### Context: This PR is [part of a larger effort by PassiveLogic](https://github.com/PassiveLogic/swift-web-examples/issues/1) to improve Swift for WebAssembly support