mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Dependency Scan] Remove newly-introduced error failure on missing header dependency of a binary module dependency
Previous behavior had the scanner simply proceed if the header input of a binary Swift module dependency could not be resolved on the filesystem Resolves rdar://139736789
This commit is contained in:
@@ -552,15 +552,8 @@ bool ClangImporter::getHeaderDependencies(
|
||||
auto swiftBinaryDeps = targetModuleInfo.getAsSwiftBinaryModule();
|
||||
if (!swiftBinaryDeps->headerImport.empty()) {
|
||||
auto clangModuleDependencies = scanHeaderDependencies(swiftBinaryDeps->headerImport);
|
||||
if (!clangModuleDependencies) {
|
||||
// FIXME: Route this to a normal diagnostic.
|
||||
llvm::logAllUnhandledErrors(clangModuleDependencies.takeError(),
|
||||
llvm::errs());
|
||||
Impl.SwiftContext.Diags.diagnose(
|
||||
SourceLoc(), diag::clang_dependency_scan_error,
|
||||
"failed to scan header dependencies");
|
||||
if (!clangModuleDependencies)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user