mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Do not disambiguate 'GlobalModuleDependenciesCache' by search path set
This is no longer necessary since the cache is always configured for the current scanning context hash, which includes the search path set.
This commit is contained in:
@@ -167,20 +167,16 @@ Optional<ModuleDependencies> SerializedModuleLoaderBase::getModuleDependencies(
|
||||
|
||||
// Check whether we've cached this result.
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftInterface, currentSearchPathSet}))
|
||||
moduleName, ModuleDependenciesKind::SwiftInterface))
|
||||
return found;
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftSource, currentSearchPathSet}))
|
||||
moduleName, ModuleDependenciesKind::SwiftSource))
|
||||
return found;
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftBinary, currentSearchPathSet}))
|
||||
moduleName, ModuleDependenciesKind::SwiftBinary))
|
||||
return found;
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftPlaceholder, currentSearchPathSet}))
|
||||
moduleName, ModuleDependenciesKind::SwiftPlaceholder))
|
||||
return found;
|
||||
|
||||
ImportPath::Module::Builder builder(Ctx, moduleName, /*separator=*/'.');
|
||||
|
||||
Reference in New Issue
Block a user