HomePhabricator

[clang][deps] Add argument for customizing PCM paths

Authored by jansvoboda11 on Jun 2 2021, 5:07 AM.

Description

[clang][deps] Add argument for customizing PCM paths

Dependency scanning currently performs an implicit build. When testing that Clang can build modules with the command-lines generated by clang-scan-deps, the actual compilation would overwrite artifacts created during the scan, which makes debugging harder than it should be and can lead to errors in multi-step builds.

To prevent this, this patch adds new flag to clang-scan-deps that allows developers to customize the directory to use when generating module map paths, instead of always using the module cache. Moreover, the explicit context hash in now part of the PCM path, which will be useful in D102488, where the context hash can change due to command-line pruning.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D103516

Details

Committed
jansvoboda11Jun 4 2021, 5:45 AM
Reviewer
Bigcheese
Differential Revision
D103516: [clang][deps] Add argument for customizing PCM paths
Parents
rGcd093cbb115a: [AMDGPU][MC][NFC] Fixed typos in parser
Branches
Unknown
Tags
Unknown