[Caching] Fix -access-note-path when using caching

Make sure to capture access-note when building with swift caching.

rdar://161835182
This commit is contained in:
Steven Wu
2025-10-02 12:08:10 -07:00
parent 4b2cbef3d5
commit a1a67997b7
2 changed files with 46 additions and 0 deletions

View File

@@ -471,6 +471,11 @@ SwiftDependencyTracker::SwiftDependencyTracker(
// Add blocklist file.
for (auto &File: CI.getFrontendOptions().BlocklistConfigFilePaths)
addCommonFile(File);
// Add access notes.
StringRef AccessNotePath = CI.getLangOptions().AccessNotesPath;
if (!AccessNotePath.empty())
addCommonFile(AccessNotePath);
}
void SwiftDependencyTracker::startTracking(bool includeCommonDeps) {