mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: teach the compiler to use a backup directory to find .swiftinterface files to compile
This mechanism allows the compiler to use a backup interface file to build into a binary module when a corresponding interface file from the SDK is failing for whatever reasons. This mechansim should be entirely opaque to end users except several diagnostic messages communicating backup interfaces are used. Part of rdar://77676064
This commit is contained in:
@@ -54,6 +54,7 @@ std::error_code ModuleDependencyScanner::findModuleFilesInDirectory(
|
||||
}
|
||||
}
|
||||
assert(fs.exists(InPath));
|
||||
|
||||
// Use the private interface file if exits.
|
||||
auto PrivateInPath =
|
||||
BaseName.getName(file_types::TY_PrivateSwiftModuleInterfaceFile);
|
||||
|
||||
Reference in New Issue
Block a user