Skip to content

[6.0][Caching] Temporarily using llvm style diagnostics in caching #73848

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

cachemeifyoucan
Copy link
Contributor

Explanation: Swift Caching Diagnostics doesn't support swift style diagnostics yet, which can cause crashes. Workaround the issue by only using llvm style diagnostics for now.
Scope: Avoid crashes and wrongly rendered diagnostics when caching is on.
Original PR: #73575
Issue: rdar://127530204
Reviewer: @akyrtzi
Risk: Low.
Test: Unit Tests

When caching is enabled, using swift style diagnotics can lead to
crashes due to some uninitialized variables. Even more, the swift style
diagnostics is not going to render the same when replay from the cache
since the currect caching diagnostics processor is not capture all
information that is needed to render diagnostis from SwiftSyntax.
Temprarily using llvm style for caching builds.

rdar://127530204
(cherry picked from commit 68c755e)
@cachemeifyoucan cachemeifyoucan requested a review from a team as a code owner May 23, 2024 16:11
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan merged commit b570b60 into swiftlang:release/6.0 May 24, 2024
5 checks passed
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.

2 participants