mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CAS] swift dependency scanning using CAS for compiler caching (#66366)
Teach swift dependency scanner to use CAS to capture the full dependencies for a build and construct build commands with immutable inputs from CAS. This allows swift compilation caching using CAS.
This commit is contained in:
@@ -94,7 +94,9 @@ static bool findOverlayFilesInDirectory(ASTContext &ctx, StringRef path,
|
||||
callback(file);
|
||||
}
|
||||
|
||||
if (error && error != std::errc::no_such_file_or_directory) {
|
||||
// A CAS file list returns operation not permitted on directory iterations.
|
||||
if (error && error != std::errc::no_such_file_or_directory &&
|
||||
error != std::errc::operation_not_permitted) {
|
||||
ctx.Diags.diagnose(diagLoc, diag::cannot_list_swiftcrossimport_dir,
|
||||
moduleName, error.message(), path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user