Skip to content

Add -index-ignore-clang-modules flag to prevent indexing Clang modules #58932

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 3 commits into from
Jun 3, 2022

Conversation

DavidGoldman
Copy link
Contributor

@DavidGoldman DavidGoldman commented May 16, 2022

This flag avoids indexing imported clang modules (PCMs), similar to the -index-ignore-system-modules except it applies to the Clang PCMs.

This flag is useful to avoid repeated indexing of the same Clang PCM during remote builds - useful with explicit module (PCMs) builds that execute remotely, where the build system will index the PCM once during its generation and there's no need to ever index it again.

This flag avoids indexing import clang modules (pcms), behaving
similar to `-index-ignore-system-modules` except for PCMs.
@DavidGoldman DavidGoldman force-pushed the ignoreclangmoduleindexing branch from aa8da95 to 65062c9 Compare May 17, 2022 23:41
@keith
Copy link
Member

keith commented May 26, 2022

@swift-ci please test

@bnbarham bnbarham requested review from akyrtzi and benlangmuir May 27, 2022 19:28
DavidGoldman added a commit to DavidGoldman/llvm-project that referenced this pull request May 31, 2022
This is the clang equivalent of
swiftlang/swift#58932, to be used when building
explicit clang modules for Swift to prevent repeated indexing of the
same Clang PCM during remote builds. With this, the build system
can index the Clang PCM when it is created and there's no need to
ever index it again.
DavidGoldman added a commit to DavidGoldman/llvm-project that referenced this pull request May 31, 2022
This is the clang equivalent of
swiftlang/swift#58932, to be used when building
explicit clang modules for Swift to prevent repeated indexing of the
same Clang PCM during remote builds. With this, the build system
can index the Clang PCM when it is created and there's no need to
ever index it again.
@bnbarham
Copy link
Contributor

bnbarham commented Jun 2, 2022

@swift-ci please test

DavidGoldman added a commit to DavidGoldman/llvm-project that referenced this pull request Jun 2, 2022
This is the clang equivalent of
swiftlang/swift#58932, to be used when building
explicit clang modules for Swift to prevent repeated indexing of the
same Clang PCM during remote builds. With this, the build system
can index the Clang PCM when it is created and there's no need to
ever index it again.

(cherry picked from commit 2a822a6)
DavidGoldman added a commit to DavidGoldman/llvm-project that referenced this pull request Jun 2, 2022
This is the clang equivalent of
swiftlang/swift#58932, to be used when building
explicit clang modules for Swift to prevent repeated indexing of the
same Clang PCM during remote builds. With this, the build system
can index the Clang PCM when it is created and there's no need to
ever index it again.

(cherry picked from commit 2a822a6)
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.

4 participants