diff --git a/Sources/SwiftDriver/Jobs/Planning.swift b/Sources/SwiftDriver/Jobs/Planning.swift index c0b42d662..c91f523b2 100644 --- a/Sources/SwiftDriver/Jobs/Planning.swift +++ b/Sources/SwiftDriver/Jobs/Planning.swift @@ -197,10 +197,11 @@ extension Driver { throws { // If asked, add jobs to precompile module dependencies guard parsedOptions.contains(.driverExplicitModuleBuild) else { return } - guard let dependencyGraph else { + guard let resolvedDependencyGraph = dependencyGraph else { fatalError("Attempting to plan explicit dependency build without a dependency graph") } - let modulePrebuildJobs = try generateExplicitModuleDependenciesJobs(dependencyGraph: dependencyGraph) + let modulePrebuildJobs = + try generateExplicitModuleDependenciesJobs(dependencyGraph: resolvedDependencyGraph) modulePrebuildJobs.forEach(addJob) }