[PATCH] D103516: [clang][deps] Customize PCM path via -build-dir argument
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 2 05:12:20 PDT 2021
jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, dexonsmith.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Dependency scanning currently performs an implicit build. When testing that the command-lines produced for modular dependencies work when passed to Clang, they would overwrite the implicitly built PCM with an explicitly built PCM. This makes debugging harder than it should be.
This patch adds new flag to `clang-scan-deps` that allows developers to customize the PCM build directory, preventing file overwrites. Moreover, the explicit context hash is now part of the PCM path. This is useful in D102488 <https://reviews.llvm.org/D102488>, where the context hash can change due to command-line pruning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103516
Files:
clang/test/ClangScanDeps/modules-full.cpp
clang/tools/clang-scan-deps/ClangScanDeps.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103516.349238.patch
Type: text/x-patch
Size: 6659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210602/3e485890/attachment.bin>
More information about the cfe-commits
mailing list