Skip to content

Conversation

@LeFrosch
Copy link
Collaborator

Follow up for: #7834

The PR adds a cache for generated headers and _virtual_include directories of a target to avoid placing header search paths into the execution root.

Header search paths in the execution root can cause unnecessary files to be loaded into the VFS, since indexing code might recursively iterate over all files in these directories.

This approach is different from #7834 since it uses the compilation_context.headers field on the CcInfo provider to populate the cache. This should be more reliable then collecting all headers manually.

@LeFrosch LeFrosch mentioned this pull request Oct 17, 2025
@LeFrosch LeFrosch marked this pull request as ready for review October 21, 2025 14:21
@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Oct 21, 2025
@LeFrosch LeFrosch merged commit e54c9b9 into bazelbuild:master Oct 27, 2025
3 checks passed
@LeFrosch LeFrosch deleted the header-cache branch October 27, 2025 09:19
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Bazel IntelliJ Plugin Oct 27, 2025
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin

Projects

Development

Successfully merging this pull request may close these issues.

4 participants