Skip to content

Commit 9e8325d

Browse files
committed
Use an Explicit SDK in a Test
The linker on Xcode 13 can no longer find libObjC without an -sdk argument on macOS.
1 parent 7ccace1 commit 9e8325d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SwiftDriverTests/ParsableMessageTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,10 @@ final class ParsableMessageTests: XCTestCase {
354354
$0 <<< "print(\"hello, world!\")"
355355
}
356356
let diags = DiagnosticsEngine()
357+
let sdkArgumentsForTesting = (try? Driver.sdkArgumentsForTesting()) ?? []
357358
var driver = try Driver(args: ["swiftc", main.pathString,
358359
"-use-frontend-parseable-output",
359-
"-o", output.pathString],
360+
"-o", output.pathString] + sdkArgumentsForTesting,
360361
env: ProcessEnv.vars,
361362
diagnosticsEngine: diags,
362363
fileSystem: localFileSystem)

0 commit comments

Comments
 (0)