[PATCH] D121303: [clang][deps] Don't prune search paths used by dependencies
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 9 09:02:22 PST 2022
jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, dexonsmith.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
When pruning header search paths (to reduce the number of modules we need to build explicitly), we can't prune the search paths used in (transitive) dependencies of a module. Otherwise, we could end up with either of the following dependency graphs:
X:<hash1> -> Y:<hash2>
X:<hash1> -> Y:<hash3>
depending on the search paths of the translation unit we discovered `X` and `Y` from.
This patch fixes that.
Depends on D121295 <https://reviews.llvm.org/D121295>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121303
Files:
clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
clang/test/ClangScanDeps/header-search-pruning-transitive.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121303.414119.patch
Type: text/x-patch
Size: 7773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220309/649baba9/attachment-0001.bin>
More information about the cfe-commits
mailing list