[clang][deps] Disable global module index
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 15 Feb 2022 08:51:17 +0000 (09:51 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 15 Feb 2022 08:51:23 +0000 (09:51 +0100)
commitc6f8704053ba364cf8cc9a0a966617efeda079f7
tree38cffcb899971262c9ada6a5c34752ffa54121df
parentd8298f04a9681fcbb16d7fc4872690b5504a0d52
[clang][deps] Disable global module index

While scanning dependencies of a TU that depends on a PCH, the scanner basically performs mixed implicit/explicit modular compilation. (Explicit modules come from the PCH.) This seems to trip up the global module index.

This patch disables global module index in the dependency scanner.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D118890
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp