mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #81919 from artemcm/DiagnoseMissingModulesSeenInSerializedSearchPaths
[Dependency Scanning] On failure to locate a module, attempt to diagnose if binary dependencies contain search paths with this module.
This commit is contained in:
@@ -638,11 +638,15 @@ SerializedModuleLoaderBase::scanModuleFile(Twine modulePath, bool isFramework,
|
||||
loadedModuleFile->resolveModuleDefiningFilePath(Ctx.SearchPathOpts.getSDKPath());
|
||||
|
||||
std::string userModuleVer = loadedModuleFile->getUserModuleVersion().getAsString();
|
||||
std::vector<serialization::SearchPath> serializedSearchPaths;
|
||||
llvm::copy(loadedModuleFile->getSearchPaths(), std::back_inserter(serializedSearchPaths));
|
||||
|
||||
// Map the set of dependencies over to the "module dependencies".
|
||||
auto dependencies = ModuleDependencyInfo::forSwiftBinaryModule(
|
||||
modulePath.str(), moduleDocPath, sourceInfoPath, moduleImports,
|
||||
optionalModuleImports, linkLibraries, importedHeader,
|
||||
definingModulePath, isFramework, loadedModuleFile->isStaticLibrary(),
|
||||
optionalModuleImports, linkLibraries, serializedSearchPaths,
|
||||
importedHeader, definingModulePath, isFramework,
|
||||
loadedModuleFile->isStaticLibrary(),
|
||||
/*module-cache-key*/ "", userModuleVer);
|
||||
|
||||
for (auto ¯o : loadedModuleFile->getExternalMacros()) {
|
||||
|
||||
Reference in New Issue
Block a user