This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Collect precompiled deps from submodules too
ClosedPublic

Authored by jansvoboda11 on Aug 23 2021, 4:32 AM.

Details

Summary

In this patch, the dependency scanner starts collecting precompiled dependencies from all encountered submodules, not only from top-level modules.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Aug 23 2021, 4:32 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2021, 4:32 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 added inline comments.Aug 23 2021, 4:33 AM
clang/test/ClangScanDeps/modules-pch-common-via-submodule.c
85

Previously, we'd miss this module included from mod_tu_sub.h, resulting in a compilation error for ModTU.

dexonsmith accepted this revision.Aug 23 2021, 9:08 AM

LGTM.

clang/test/ClangScanDeps/modules-pch-common-via-submodule.c
85

Can you add a comment to the top of the testcase explaining what's interesting about it? (Something similar to what you have here.)

This revision is now accepted and ready to land.Aug 23 2021, 9:08 AM