[ScanDependency] Allow importing binary testable module when no interface

Follow-up adjustment for binary module selection in dependency scanning
time. If a testable binary module doesn't have an interface file, it
should be used even it might pull in more dependencies.
This commit is contained in:
Steven Wu
2024-04-08 10:26:15 -07:00
parent bdb32c92c6
commit 90a1586c3c
4 changed files with 17 additions and 9 deletions

View File

@@ -163,8 +163,10 @@ protected:
}
/// Scan the given serialized module file to determine dependencies.
llvm::ErrorOr<ModuleDependencyInfo>
scanModuleFile(Twine modulePath, bool isFramework, bool isTestableImport);
llvm::ErrorOr<ModuleDependencyInfo> scanModuleFile(Twine modulePath,
bool isFramework,
bool isTestableImport,
bool hasInterface);
struct BinaryModuleImports {
llvm::StringSet<> moduleImports;