aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2022-01-21 11:18:22 +0100
committerJan Svoboda <jan_svoboda@apple.com>2022-01-21 13:04:25 +0100
commit8cc2a137270462bc191377dbab97c739583814dd (patch)
tree8620bff9784ad7391d973d0bfcc77380ff70b861 /llvm/lib/Support
parent5daeada33051aa85777593d3f69eb29f26e7fb2f (diff)
downloadllvm-8cc2a137270462bc191377dbab97c739583814dd.zip
llvm-8cc2a137270462bc191377dbab97c739583814dd.tar.gz
llvm-8cc2a137270462bc191377dbab97c739583814dd.tar.bz2
[clang][deps] Handle symlinks in minimizing FS
The minimizing and caching filesystem used by the dependency scanner can be configured to **not** minimize some files. That's necessary when scanning a TU with prebuilt inputs (i.e. PCH) that refer to the original (non-minimized) files. Minimizing such files in the dependency scanner would cause discrepancy between the current perceived state of the filesystem and the file sizes stored in the AST file. By not minimizing such files, we avoid creating the discrepancy. The problem with the current approach is that files that should not be minimized are identified by their path. This breaks down when the prebuilt input (PCH) and the current TU refer to the same file via different paths (i.e. symlinks). This patch switches from paths to `llvm::sys::fs::UniqueID` when identifying ignored files. This is consistent with how the rest of Clang treats files. Depends on D114966. Reviewed By: dexonsmith, arphaman Differential Revision: https://reviews.llvm.org/D114971
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions