Skip to content

Commit 836077d

Browse files
committed
Add -require-explicit-availability and -require-explicit-availability-target to common frontend opts
1 parent 54238ad commit 836077d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ extension Driver {
166166
try commandLine.appendLast(.enableDirectIntramoduleDependencies, .disableDirectIntramoduleDependencies, from: &parsedOptions)
167167
try commandLine.appendLast(.locale, from: &parsedOptions)
168168
try commandLine.appendLast(.localizationPath, from: &parsedOptions)
169+
try commandLine.appendLast(.requireExplicitAvailability, from: &parsedOptions)
170+
try commandLine.appendLast(.requireExplicitAvailabilityTarget, from: &parsedOptions)
169171
try commandLine.appendAll(.D, from: &parsedOptions)
170172
try commandLine.appendAll(.sanitizeEQ, from: &parsedOptions)
171173
try commandLine.appendAll(.debugPrefixMap, from: &parsedOptions)

Tests/SwiftDriverTests/IntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ final class IntegrationTests: IntegrationTestCase {
112112
// they will fail.
113113

114114
func testLitDriverTests() throws {
115-
try runLitTests(suite: "test", "Driver")
115+
try runLitTests(suite: "test", "attr")
116116
}
117117

118118
func testLitDriverValidationTests() throws {

0 commit comments

Comments
 (0)