Skip to content

Commit 40a54f8

Browse files
authored
Merge pull request #1233 from artemcm/FixNewLangFeature
Rephrase use of 'guard let' not supported by older compilers.
2 parents 9cc8431 + 041a064 commit 40a54f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/SwiftDriver/Jobs/Planning.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,11 @@ extension Driver {
197197
throws {
198198
// If asked, add jobs to precompile module dependencies
199199
guard parsedOptions.contains(.driverExplicitModuleBuild) else { return }
200-
guard let dependencyGraph else {
200+
guard let resolvedDependencyGraph = dependencyGraph else {
201201
fatalError("Attempting to plan explicit dependency build without a dependency graph")
202202
}
203-
let modulePrebuildJobs = try generateExplicitModuleDependenciesJobs(dependencyGraph: dependencyGraph)
203+
let modulePrebuildJobs =
204+
try generateExplicitModuleDependenciesJobs(dependencyGraph: resolvedDependencyGraph)
204205
modulePrebuildJobs.forEach(addJob)
205206
}
206207

0 commit comments

Comments
 (0)