Skip to content

[Caching] Remove CASFS based clang module implementation #81494

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 May 13, 2025

Remove CASFS-based clang module caching build. This code path is not maintained and it adds overhead for maintaining the code path without any testing outside the unit tests.

This also allows us remove some code path that is only used by CASFS implementation and get some performance benefits. This includes removing the extra ClangImporter construction needed when caching is used.

rdar://151339073

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

Remove the CASFS based clang module implemenation as it is not longer
used.
After removing the CASFS implementation for clang modules, there is no
need to capture clang extra file that sets up the VFS for the clang
modules since all content imported by ClangImporter is dependency
scanned and available via include-tree. This saves more ClangImporter
instance when caching is enabled.

Update the test to check that clang content found via `-Xcc` VFS options
can currently work without capture the headermaps and vfs overlays.
@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-remove-clang-module-cas-fs branch from e860dc9 to 1506a0d Compare May 14, 2025 16:35
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan cachemeifyoucan merged commit f2ef2d3 into swiftlang:main May 14, 2025
3 checks passed
hamishknight added a commit to hamishknight/swift that referenced this pull request May 22, 2025
…R-remove-clang-module-cas-fs"

This reverts commit f2ef2d3.
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