Skip to content

Conversation

@cachemeifyoucan
Copy link
Contributor

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.

@cachemeifyoucan cachemeifyoucan requested a review from artemcm March 19, 2024 22:42
@cachemeifyoucan
Copy link
Contributor Author

@artemcm let me know what you think about this. The dependency scanner is not yet returning the context hash for main module but that can be easily added.

/// to mimic the actions that would be created by the C++ driver and
/// prints them in *hopefully* the same order.
private func printActions(_ jobs: [Job]) {
private mutating func printActions(_ jobs: [Job]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using lazy var is mutating as I just learnt about it too.

@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-pch-path-computation branch from 8b7a7b0 to 14a8d8e Compare March 20, 2024 16:47
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

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.
@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-pch-path-computation branch from c7f8a22 to bb3eed3 Compare March 20, 2024 22:07
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@shahmishal
Copy link
Member

@swift-ci please test windows

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.

3 participants