-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Windows] Prepare for swift-foundation in the toolchain #74127
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
[Windows] Prepare for swift-foundation in the toolchain #74127
Conversation
@swift-ci please test |
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.
This seems relatively safe. I assume that the linkage here will be static and no DSOs (DLLs) need to be packaged up into the installer?
@swift-ci please build toolchain Windows platform |
This change itself is basically a no-op, Foundation doesn't use these settings yet. Eventually, the list of shared libraries we install into the toolchain will expand from |
@compnerd is there a better way I should be getting the SwiftSyntax directory from the early swift syntax build? I see other places in this file use |
I think that you need to build swift-syntax for the target - right now we only build swift-syntax for the host and there is no guarantee that the host and target are the same (we do support cross-compilation for the ARM64 distribution). |
I think that should be fine - we only need swift-syntax for our macro which only gets built for the host anyways, right? |
Oh I see: |
@swift-ci please build toolchain Windows platform |
@swift-ci please smoke test |
@compnerd it looks like the latest changes passed tests/toolchain builds - is this ok to go ahead and merge and cherry pick to release/6.0 to help unblock the swift-foundation work? |
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.
I think that there is a small change that we should do to compnerd/swift-build to ensure that the other repositories are checked out with repo
, but LGTM.
Sounds good, LMK if there's anything I can help with on that front - looks like you have swift-foundation and swift-foundation-icu added there now which looks good. Once #73654 lands we'll likely need to bump swift-collections to the 1.1.1 revision there too since swift-foundation depends on swift-collections >=1.1.1 |
This PR is the same effective change as #74019 but for the Windows build via
build.ps1