You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for -disable-upcoming-feature and -disable-experimental-feature.
Synchronize Options.swift with swiftlang/swift#77662
and update the driver to pass all feature related flags down to the frontend
together, preserving the order the flags were specified.
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+4
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,7 @@ extension Option {
184
184
publicstaticletdisableDynamicActorIsolation:Option=Option("-disable-dynamic-actor-isolation",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Disable dynamic actor isolation checks")
185
185
publicstaticletdisableEmitGenericClassRoTList:Option=Option("-disable-emit-generic-class-ro_t-list",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of a section with references to class_ro_t of generic class patterns")
186
186
publicstaticletdisableExperimentalClangImporterDiagnostics:Option=Option("-disable-experimental-clang-importer-diagnostics",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Disable experimental diagnostics when importing C, C++, and Objective-C libraries")
187
+
publicstaticletdisableExperimentalFeature:Option=Option("-disable-experimental-feature",.separate, attributes:[.frontend,.moduleInterface], helpText:"Disable an experimental feature")
publicstaticletdisableExperimentalOpenedExistentialTypes:Option=Option("-disable-experimental-opened-existential-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable experimental support for implicitly opened existentials")
189
190
publicstaticletdisableExperimentalParserRoundTrip:Option=Option("-disable-experimental-parser-round-trip",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable round trip through the new swift parser")
@@ -263,6 +264,7 @@ extension Option {
263
264
publicstaticletdisableThrowsPrediction:Option=Option("-disable-throws-prediction",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disables optimization assumption that functions rarely throw errors.")
264
265
publicstaticletdisableTypeLayouts:Option=Option("-disable-type-layout",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable type layout based lowering")
publicstaticletdisableUpcomingFeature:Option=Option("-disable-upcoming-feature",.separate, attributes:[.frontend,.moduleInterface], helpText:"Disable a feature that will be introduced in an upcoming language version")
266
268
publicstaticletdisableVerifyExclusivity:Option=Option("-disable-verify-exclusivity",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable verification of access markers used to enforce exclusivity.")
267
269
publicstaticletdisallowForwardingDriver:Option=Option("-disallow-use-new-driver",.flag, helpText:"Disable using new swift-driver")
268
270
publicstaticletdowngradeTypecheckInterfaceError:Option=Option("-downgrade-typecheck-interface-error",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Downgrade error to warning when typechecking emitted module interfaces")
0 commit comments