Skip to content

🍒 "Virtualize swift compiler outputs" #65015

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

Closed

Conversation

kavon
Copy link
Member

@kavon kavon commented Apr 7, 2023

This PR #63206 had a companion PR swiftlang/llvm-project#6112 that was required because it changed a Swift API (ASTContext::get). But that same LLVM containing the change is also used by release/5.9 and the Swift API change was not cherry-picked to the release/5.9 branch. This broke the build and made it difficult to catch-up swift/release/5.9 in swiftlang/llvm-project#6619

Using a virutal output backend to capture all the outputs from
swift-frontend invocation. This allows redirecting and/or mirroring
compiler outputs to multiple location using different OutputBackend.

As an example usage for the virtual outputs, teach swift compiler to
check its output determinism by running the compiler invocation
twice and compare the hash of all its outputs.

Virtual output will be used to enable caching in the future.
@kavon kavon changed the base branch from main to release/5.9 April 7, 2023 20:51
@kavon kavon requested a review from a team as a code owner April 7, 2023 20:51
@kavon
Copy link
Member Author

kavon commented Apr 7, 2023

@swift-ci please test

@kavon
Copy link
Member Author

kavon commented Apr 7, 2023

swiftlang/llvm-project#6619
@swift-ci please test

@ahoppen ahoppen removed their request for review April 7, 2023 21:24
@kavon kavon marked this pull request as draft April 10, 2023 22:53
@xedin xedin removed their request for review April 12, 2023 16:52
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
@artemcm
Copy link
Contributor

artemcm commented May 22, 2023

@kavon can we close this PR?

@kavon kavon closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants