-
Notifications
You must be signed in to change notification settings - Fork 18
Generate Embedded Swift SDK for WASI #208
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
Conversation
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test |
@euanh this might be interesting for you as we potentially could do the same with for Linux. IDK how well Embedded Swift works with Glibc, but certainly should be possible with Musl. |
That's an interesting idea! Definitely worth trying it. It looks like the main functional change here is adding extra compiler flags. Is that right? |
Yes, also adding one more Swift SDK with its own metadata and its own toolset within the same bundle. As a lot of directories overlap between embedded and non-embedded and can be reused, we rely on this recent SwiftPM change to enable that swiftlang/swift-package-manager#8638 |
swiftlang/swift-package-manager#8638 is a nice improvement. 🎉 |
This allows targeting WASI with Embedded Swift, enabling use of a subset of Swift Concurrency in this mode, and also hiding most if not all of unsafe flags in toolsets. This way, users of Embedded Swift can build their packages with a similar
swift build --swift-sdk
command as the rest of users of WASI.