This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Generate '-fmodule-file=' only for direct dependencies
ClosedPublic

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

Details

Summary

The clang-scan-deps tool currently generates -fmodule-file= command-line arguments for the whole transitive closure of modular dependencies. This is not necessary, we only need to provide the direct dependencies on the command line. Information about transitive dependencies is stored within the .pcm files of direct dependencies. This makes the command lines shorter, but should be a NFC otherwise (unless there are bugs in the loading mechanism for explicit modules).

Depends on D120465.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Feb 3 2022, 8:45 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2022, 8:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Feb 3 2022, 4:17 PM

Rebase on top of D120465

Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 2:02 AM
This revision was landed with ongoing or failed builds.Mar 12 2022, 2:41 AM
This revision was automatically updated to reflect the committed changes.