Skip to content

Commit 71b1a53

Browse files
authored
Merge pull request #797 from artemcm/FixPatternOldCompilerCompat
Fix `guard let sdkPath = sdkPath` pattern for compatiblity with older compilers
2 parents c3cc6de + 5bb3c8a commit 71b1a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/swift-build-sdk-interfaces/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ let verbose = CommandLine.arguments.contains("-v")
5353
let skipExecution = CommandLine.arguments.contains("-n")
5454

5555
do {
56-
let sdkPath = try getArgumentAsPath("-sdk", "SDKROOT")
57-
guard let sdkPath = sdkPath else {
56+
let sdkPathArg = try getArgumentAsPath("-sdk", "SDKROOT")
57+
guard let sdkPath = sdkPathArg else {
5858
diagnosticsEngine.emit(.error("need to set SDKROOT"))
5959
exit(1)
6060
}

0 commit comments

Comments
 (0)