Skip to content

[6.0][Caching] SwiftDriver changes for caching support #1572

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

@cachemeifyoucan cachemeifyoucan commented Mar 28, 2024

Explanation: SwiftDriver changes needed for swift caching support
Original PR: #1567 #1550
Risk: Low. Mostly only affects swift caching experimental feature.
Testing: Unit tests
Reviewer: @artemcm

…d jobs

Update swift-driver to support directly instantiate clang importer in
all jobs with cc1 flags. In the new mode, swift dependency scanner will
return all the cc1 flags to the actual compilation doesn't need to run
clang driver again. In this mode, swift-driver should avoid forwarding
Xcc command-line options since those are expected to be clang driver
args, not cc1 args.

(cherry picked from commit e31e98f)
Teach swift driver to use a deterministic path for compiled PCH output.
Also when dependency scanner is updated to return a module scanning or
PCH hash from the scanning result, it will add that to the code path to
have an unique PCH file path for the specific compilation.

(cherry picked from commit bb3eed3)
@cachemeifyoucan cachemeifyoucan requested a review from artemcm March 28, 2024 22:43
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan requested a review from a team April 4, 2024 16:30
@cachemeifyoucan cachemeifyoucan merged commit 643fb73 into swiftlang:release/6.0 Apr 4, 2024
3 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