Skip to content

(Re)-Disable End Of Pipeline Actions for ObjC Actions #33917

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

Merged
merged 3 commits into from
Sep 11, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Sep 11, 2020

This restores the behavior of the old frontend - which would skip these post-pipeline actions wholesale. #33672 tried turning it on, but it turns out we were modeling ObjC header inputs as Swift files, and so the first post-pipeline action to build the main module would suck in the bridging header and try to parse it as Swift code.

To tackle that last one, explicitly model ObjCHeader as an input kind. This is just plumbing I'll need for later.

rdar://68587228

These inputs were previously modeled as Swift files, which would lead to bizarre situations where parts of the pipeline expecting Swift inputs actually wound up parsing Objective-C.
For now, force the clang-based actions to skip the end of the pipeline. This restores the previous behavior of the frontend, but may not be desirable in the long run. For example, one may want to dump clang stats after running an -emit-pch job, but that is impossible without forcing the end of the pipeline to be more tolerant of ObjCHeader/modulemap-only inputs.

rdar://68587228
@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 11, 2020

@swift-ci smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 11, 2020

@CodaFi CodaFi merged commit 99147a8 into swiftlang:master Sep 11, 2020
@CodaFi CodaFi deleted the taking-a-header branch September 11, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant