-
Notifications
You must be signed in to change notification settings - Fork 708
feat: Enable NIOFoundationCompat to compile using Swift for WebAssembly. Fix NIOCore WASI compilation issue. #3422
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
base: main
Are you sure you want to change the base?
Conversation
|
@MaxDesiatov @kateinoigakukun in case you're interested, I'm fixing Swift for WebAssembly compilation for NIOCore and NIOFoundationCompat in this PR. |
| "Bad interface address family" | ||
| case let .illegalMulticastAddress(address): | ||
| "Illegal multicast address \(address)" | ||
| #if !os(WASI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly enough, a previous fix for this compiler error no longer seems to be in main. Not sure why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty likely it got lost in a merge conflict. The perils of not having a running CI job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the holdup with the Wasm job? I though we had one enabled here already...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this get reverted somehow or how did it not catch the issue? #3332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, thanks!
| "Bad interface address family" | ||
| case let .illegalMulticastAddress(address): | ||
| "Illegal multicast address \(address)" | ||
| #if !os(WASI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's pretty likely it got lost in a merge conflict. The perils of not having a running CI job.
|
This needs to be updated to the latest |
Fix Swift for WebAssembly compilation in NIOCore and NIOFoundationCompat.
Motivation:
NIO is a common dependency, and it is important to enable compiling NIO using Swift for WebAssembly. This PR fixes compilation for NIOCore and NIOFoundationCompat.
Modifications:
Result:
With these changes, the following build commands succeed: ✅
Context:
This PR is part of a larger effort by PassiveLogic to improve Swift for WebAssembly support