This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Disable global module index
ClosedPublic

Authored by jansvoboda11 on Feb 3 2022, 4:45 AM.

Details

Summary

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.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Feb 3 2022, 4:45 AM
jansvoboda11 requested review of this revision.Feb 3 2022, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2022, 4:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 edited the summary of this revision. (Show Details)Feb 3 2022, 8:46 AM
jansvoboda11 added a reviewer: Bigcheese.

I'd like to add a test case, but actually creating a minimal one is proving to be difficult. This is most likely caused by the interaction between the global module index and explicit+implicit modules. Since we want to move off of the implicit build in dependency scanner, I don't think having a test case for this is crucial.

Bigcheese accepted this revision.Feb 3 2022, 4:19 PM

lgtm. I agree that testing this isn't really necessary given the difficulty of even constructing one.

This revision is now accepted and ready to land.Feb 3 2022, 4:19 PM
This revision was landed with ongoing or failed builds.Feb 15 2022, 12:51 AM
This revision was automatically updated to reflect the committed changes.