Skip to content

[Explicit Module Builds] Use the new batch scanning mode for versioned PCM clang modele re-scan #225

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

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 27, 2020

swiftlang/swift#33569 introduced a batch dependency scanning mode to save up on the overhead of clang instance creation.
This patch switches swift-driver over to using the new batch mode instead of generating individual -scan-clang-dependencies jobs for each re-scan.

@artemcm artemcm requested review from DougGregor and nkcsgexi August 27, 2020 04:37
@artemcm
Copy link
Contributor Author

artemcm commented Aug 27, 2020

The test that relies on the versioned PCM re-scanning is currently failing with this change, but the driver side of things looks okay to me. I'm investigating if there is something we are missing in the scanner.

@artemcm artemcm force-pushed the BatchVersionedClangScan branch 2 times, most recently from ec78c33 to a8ac888 Compare August 27, 2020 04:41
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

Looks great to me, thanks!

…d PCM clang modele re-scan

swiftlang/swift#33569 introduced a batch dependency scanning mode to save up on the overhead of clang instance creation.
This patch switches `swift-driver` over to using the new batch mode instead of generating individual `-scan-clang-dependencies` jobs for each re-scan.
@artemcm artemcm force-pushed the BatchVersionedClangScan branch from a8ac888 to 531aee6 Compare August 28, 2020 02:51
@artemcm
Copy link
Contributor Author

artemcm commented Sep 1, 2020

@swift-ci please test

2 similar comments
@artemcm
Copy link
Contributor Author

artemcm commented Sep 1, 2020

@swift-ci please test

@artemcm
Copy link
Contributor Author

artemcm commented Sep 1, 2020

@swift-ci please test

@artemcm artemcm merged commit 0eb928a into swiftlang:master Sep 1, 2020
artemcm added a commit to artemcm/swift-driver that referenced this pull request Sep 1, 2020
…langScan"

This reverts commit 0eb928a, reversing
changes made to 2db7080.
artemcm added a commit that referenced this pull request Sep 2, 2020
xymus pushed a commit to xymus/swift-driver that referenced this pull request Nov 6, 2020
…langScan"

This reverts commit 0eb928a, reversing
changes made to 2db7080.
@artemcm artemcm deleted the BatchVersionedClangScan branch January 20, 2021 19:01
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