-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Caching] Teach libSwiftScan to replay all diagnostics kinds #74128
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
[Caching] Teach libSwiftScan to replay all diagnostics kinds #74128
Conversation
@swift-ci please smoke test |
63d58d8
to
fd0f519
Compare
@swift-ci please smoke test |
Extract the logics for emitting diagnostics, especially the parseable output message, from FrontendTools so it is easier to reason.
Add support for serialized diagnostics, parseable output, and other kinds of output from diagnostics engine to the libSwiftScan replayCompilation API. rdar://129015959
fd0f519
to
1912d0b
Compare
@swift-ci please smoke test |
ping for review. |
@swift-ci please smoke test macOS platform |
ping |
Another ping |
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.
Very tidy refactor, too. Thank you.
// StaticLinkJob, DynamicLinkJob | ||
} | ||
|
||
// TODO: Apply elsewhere in the compiler |
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.
👀
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 is directly transported from original code. Do I own the TODO now that git blame
will trace to me?
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.
Yeah, I think that's the law. 🤷🏼
This PR contains two commits:
This allows supporting in-process replay from build system for all the diagnostics kind without diverging with the handling in swift-frontend.