-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[DependencyScan] Correct setup clang VFS for dependency scanning #86104
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
Draft
cachemeifyoucan
wants to merge
1
commit into
swiftlang:main
Choose a base branch
from
cachemeifyoucan:eng/PR-clang-importer-vfs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
[DependencyScan] Correct setup clang VFS for dependency scanning #86104
cachemeifyoucan
wants to merge
1
commit into
swiftlang:main
from
cachemeifyoucan:eng/PR-clang-importer-vfs
+192
−177
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
@swift-ci please smoke test |
0ff27f8 to
57c160f
Compare
Contributor
Author
|
@swift-ci please smoke test |
57c160f to
f359367
Compare
Contributor
Author
|
@swift-ci please smoke test |
f359367 to
9971051
Compare
Contributor
Author
|
@swift-ci please smoke test |
9971051 to
b0123c7
Compare
Contributor
Author
|
@swift-ci please smoke test |
b0123c7 to
31c7be3
Compare
Contributor
Author
|
@swift-ci please smoke test |
Contributor
Author
|
@swift-ci please test |
31c7be3 to
d61b7d9
Compare
Contributor
Author
|
@swift-ci please smoke test |
d61b7d9 to
3741260
Compare
Contributor
Author
|
@swift-ci please smoke test |
3741260 to
9003f5f
Compare
Contributor
Author
|
@swift-ci please smoke test |
9003f5f to
561cb41
Compare
Contributor
Author
|
@swift-ci please smoke test |
561cb41 to
81d84c1
Compare
Contributor
Author
|
@swift-ci please smoke test |
Currently, dependency scanner is not reporting the redirecting files that are baked inside swift-frontend for platform support. This causes dependency scanner returns virtual path for those files, and swift-driver/build-system will not be able to correct validate the files on incremental build, causing incremental build to be almost clean builds. This behavior issue is caused by the dependency scanning file system layer inside clang dependency scanner that caches stats. If the redirecting files are created underneath the layer, the real path is lost. This fixes the issue by moving the redirecting files above the caching layer using `-ivfsoverlay` option. In addition to that, this commit also unifies how clang importer and clang dependency scanner initiate the VFS, making the logic much simpler.
81d84c1 to
0c4b596
Compare
Contributor
Author
|
@swift-ci please smoke test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, dependency scanner is not reporting the redirecting files that are baked inside swift-frontend for platform support. This causes dependency scanner returns virtual path for those files, and swift-driver/build-system will not be able to correct validate the files on incremental build, causing incremental build to be almost clean builds.
This behavior issue is caused by the dependency scanning file system layer inside clang dependency scanner that caches stats. If the redirecting files are created underneath the layer, the real path is lost. This fixes the issue by moving the redirecting files above the caching layer using
-ivfsoverlayoption.In addition to that, this commit also unifies how clang importer and clang dependency scanner initiate the VFS, making the logic much simpler.