The dependency scanner assumes immutable file system. In that context, we don't need to repeatedly validate PCM input files. This patch avoids that by using the existing -fmodules-validate-once-per-build-session mechanism.
Depends on D150318.
Paths
| Differential D150319
[clang][deps] Always use -fmodules-validate-once-per-build-session Needs ReviewPublic Authored by jansvoboda11 on May 10 2023, 3:23 PM.
Details
Summary The dependency scanner assumes immutable file system. In that context, we don't need to repeatedly validate PCM input files. This patch avoids that by using the existing -fmodules-validate-once-per-build-session mechanism. Depends on D150318.
Diff Detail
Event Timeline
Revision Contents
Diff 521122 clang/include/clang/Tooling/DependencyScanning/DependencyScanningService.h
clang/lib/Tooling/DependencyScanning/DependencyScanningService.cppclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
|
I'm not sure this is guaranteed to line up with the filesystem timestamps. I wonder if you should be writing a file and reading back that stamp instead.