-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use swift-frontend from the host for SupportedFeatures.json #34686
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
Addresses rdar://71282911
@swift-ci please build toolchain |
@swift-ci please smoke test |
Follow up of #34655 |
Hmm, Im not sure how this is supposed to work. There are two scenarios here:
In fact, I would argue that the first case doesn't apply to this at all - the Perhaps the right thing to do here is to only generate it if the toolchain is not being cross-compiled, that is: |
This target seems only run if we are building |
@swift-ci please test Windows |
@swift-ci please test stdlib with toolchain |
Build failed |
Thats what I had assumed and hence why I had said
This code path is specific to building the toolchain. But, I wanted to verify that the assumption was correct. It seems that it is.
This is where I think that the problem actually is.
AIUI, the features are meant to be the features of the toolchain being built, not the features with which the toolchain was built. This means that we need to run the binary that is being generated. This requires that we are not cross-compiling. In the case that we are cross-compiling, we have no good way to ensure that the toolchain was built at the same revision and same configuration (configuration can impact the feature set in theory). |
Sorry for not understanding your point in the first place -- I blindly based my fix on a similar issue (#33402) without realizing that in this case that the role of the executable invoked is more relevant. |
Just a note about this point,
Even if |
Linux Toolchain (Ubuntu 16.04) Install command |
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 won't work because we intend to use the just-built compiler to emit this file.
Thanks everyone for the feedback! Closing this for the sake of clarity. |
macOS Toolchain Install command |
Addresses rdar://71282911