Skip to content

Commit 926e630

Browse files
artemcmnkcsgexi
authored andcommitted
Fix guard let sdkPath = sdkPath pattern for compatiblity with older compilers
Introduced in #796, this passed CI because swift-driver CI uses a recent compiler. This broke SwiftPM CI because it uses a 5.3 compiler which contains a bug which makes such patterns fail to build.
1 parent 583b1cd commit 926e630

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)