diff --git a/Tests/SwiftDriverTests/SwiftDriverTests.swift b/Tests/SwiftDriverTests/SwiftDriverTests.swift index 756905fb7..c104951a2 100644 --- a/Tests/SwiftDriverTests/SwiftDriverTests.swift +++ b/Tests/SwiftDriverTests/SwiftDriverTests.swift @@ -7988,6 +7988,9 @@ final class SwiftDriverTests: XCTestCase { var driver = try Driver(args: [ "swiftc", "-emit-clang-header-path", "path/to/header", "-emit-clang-header-min-access", "public", "-typecheck", "test.swift" ]) + guard driver.isFrontendArgSupported(.emitClangHeaderMinAccess) else { + throw XCTSkip("Skipping: compiler does not support '-emit-clang-header-min-access'") + } let jobs = try driver.planBuild().removingAutolinkExtractJobs() XCTAssertEqual(jobs.count, 2) try XCTAssertJobInvocationMatches(jobs[0], .flag("-emit-clang-header-min-access"), .flag("public"))