Skip to content

Commit 041a064

Browse files
committed
Rephrase use of 'guard let' not supported by older compilers.
'guard let X else {}' works with latest Swift compilers (such as one used in swift-driver CI) but isn't supported in some older compilres used in CI and other bots.
1 parent 9cc8431 commit 041a064

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)