mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
DependencyScanner: report user module version in dependency scanning results for binary Swift modules
This commit is contained in:
@@ -515,12 +515,13 @@ SerializedModuleLoaderBase::scanModuleFile(Twine modulePath, bool isFramework,
|
||||
std::string definingModulePath =
|
||||
loadedModuleFile->resolveModuleDefiningFilePath(Ctx.SearchPathOpts.getSDKPath());
|
||||
|
||||
std::string userModuleVer = loadedModuleFile->getUserModuleVersion().getAsString();
|
||||
// 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(),
|
||||
/*module-cache-key*/ "");
|
||||
/*module-cache-key*/ "", userModuleVer);
|
||||
|
||||
return std::move(dependencies);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user