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
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ extension Option {
154
154
publicstaticletdisablePreviousImplementationCallsInDynamicReplacements:Option=Option("-disable-previous-implementation-calls-in-dynamic-replacements",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable calling the previous implementation in dynamic replacements")
155
155
publicstaticletdisableReflectionMetadata:Option=Option("-disable-reflection-metadata",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of reflection metadata for nominal types")
156
156
publicstaticletdisableReflectionNames:Option=Option("-disable-reflection-names",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of names of stored properties and enum cases inreflection metadata")
157
+
publicstaticletdisableRequirementMachineConcreteContraction:Option=Option("-disable-requirement-machine-concrete-contraction",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable preprocessing pass to eliminate conformance requirements on generic parameters which are made concrete")
157
158
publicstaticletdisableSilOwnershipVerifier:Option=Option("-disable-sil-ownership-verifier",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Do not verify ownership invariants during SIL Verification ")
158
159
publicstaticletdisableSilPartialApply:Option=Option("-disable-sil-partial-apply",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable use of partial_apply in SIL generation")
159
160
publicstaticletdisableSilPerfOptzns:Option=Option("-disable-sil-perf-optzns",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run SIL performance optimization passes")
@@ -266,6 +267,7 @@ extension Option {
266
267
publicstaticletemitTbdPath:Option=Option("-emit-tbd-path",.separate, attributes:[.frontend,.noInteractive,.argumentIsPath,.supplementaryOutput], metaVar:"<path>", helpText:"Emit the TBD file to <path>")
267
268
publicstaticletemitTbd:Option=Option("-emit-tbd",.flag, attributes:[.frontend,.noInteractive,.supplementaryOutput], helpText:"Emit a TBD file")
268
269
publicstaticletemitVerboseSil:Option=Option("-emit-verbose-sil",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emit locations during SIL emission")
270
+
publicstaticletemptyAbiDescriptor:Option=Option("-empty-abi-descriptor",.flag, attributes:[.frontend,.noDriver], helpText:"Avoid printing actual module content into ABI descriptor file")
269
271
publicstaticletemptyBaseline:Option=Option("-empty-baseline",.flag, attributes:[.noDriver], helpText:"Use empty baseline for diagnostics")
270
272
publicstaticletemptyBaseline_:Option=Option("--empty-baseline",.flag, alias:Option.emptyBaseline, attributes:[.noDriver], helpText:"Use empty baseline for diagnostics")
271
273
publicstaticletenableAccessControl:Option=Option("-enable-access-control",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Respect access control restrictions")
@@ -298,6 +300,7 @@ extension Option {
298
300
publicstaticletenableExperimentalPairwiseBuildBlock:Option=Option("-enable-experimental-pairwise-build-block",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Enable experimental pairwise 'buildBlock' for result builders")
publicstaticletexperimentalTypeInferenceFromDefaults:Option=Option("-enable-experimental-type-inference-from-defaults",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for generic parameter inference from default values")
301
304
publicstaticletenableExplicitExistentialTypes:Option=Option("-enable-explicit-existential-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for explicit existential types")
302
305
publicstaticletenableImplicitDynamic:Option=Option("-enable-implicit-dynamic",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Add 'dynamic' to all declarations")
303
306
publicstaticletenableIncrementalImports:Option=Option("-enable-incremental-imports",.flag, attributes:[.frontend], helpText:"Enable cross-module incremental build metadata and driver scheduling for Swift modules")
@@ -320,6 +323,7 @@ extension Option {
320
323
publicstaticletenableOssaModules:Option=Option("-enable-ossa-modules",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Always serialize SIL in ossa form. If this flag is not passed in, when optimizing ownership will be lowered before serializing SIL")
321
324
publicstaticletenableParameterizedProtocolTypes:Option=Option("-enable-parameterized-protocol-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for primary associated types and parameterized protocols")
322
325
publicstaticletenablePrivateImports:Option=Option("-enable-private-imports",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Allows this module's internal and private API to be accessed")
326
+
publicstaticletenableRequirementMachineLoopNormalization:Option=Option("-enable-requirement-machine-loop-normalization",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable stronger minimization algorithm, for debugging only")
323
327
publicstaticletenableResilience:Option=Option("-enable-resilience",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Deprecated, use -enable-library-evolution instead")
324
328
publicstaticletenableSilOpaqueValues:Option=Option("-enable-sil-opaque-values",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable SIL Opaque Values")
325
329
publicstaticletenableSourceImport:Option=Option("-enable-source-import",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable importing of Swift source files")
@@ -521,12 +525,12 @@ extension Option {
521
525
publicstaticletrequireExplicitAvailabilityTarget:Option=Option("-require-explicit-availability-target",.separate, attributes:[.frontend,.noInteractive], metaVar:"<target>", helpText:"Suggest fix-its adding @available(<target>, *) to public declarations without availability")
522
526
publicstaticletrequireExplicitAvailability:Option=Option("-require-explicit-availability",.flag, attributes:[.frontend,.noInteractive], helpText:"Require explicit availability on public declarations")
523
527
publicstaticletrequireExplicitSendable:Option=Option("-require-explicit-sendable",.flag, attributes:[.frontend,.noInteractive], helpText:"Require explicit Sendable annotations on public declarations")
524
-
publicstaticletrequirementMachineAbstractSignaturesEQ:Option=Option("-requirement-machine-abstract-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental generic signature minimization: 'on', 'off', or 'verify'")
525
-
publicstaticletrequirementMachineInferredSignaturesEQ:Option=Option("-requirement-machine-inferred-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental generic signature minimization: 'on', 'off', or 'verify'")
528
+
publicstaticletrequirementMachineAbstractSignaturesEQ:Option=Option("-requirement-machine-abstract-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental generic signature minimization: 'on', 'off', 'verify' or 'check'")
529
+
publicstaticletrequirementMachineInferredSignaturesEQ:Option=Option("-requirement-machine-inferred-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental generic signature minimization: 'on', 'off', 'verify' or 'check'")
526
530
publicstaticletrequirementMachineMaxConcreteNesting:Option=Option("-requirement-machine-max-concrete-nesting=",.joined, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Set the maximum concrete type nesting depth before giving up")
527
531
publicstaticletrequirementMachineMaxRuleCount:Option=Option("-requirement-machine-max-rule-count=",.joined, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Set the maximum number of rules before giving up")
528
532
publicstaticletrequirementMachineMaxRuleLength:Option=Option("-requirement-machine-max-rule-length=",.joined, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Set the maximum rule length before giving up")
529
-
publicstaticletrequirementMachineProtocolSignaturesEQ:Option=Option("-requirement-machine-protocol-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental protocol requirement signature minimization: 'on', 'off', or 'verify'")
533
+
publicstaticletrequirementMachineProtocolSignaturesEQ:Option=Option("-requirement-machine-protocol-signatures=",.joined, attributes:[.frontend], helpText:"Control usage of experimental protocol requirement signature minimization: 'on', 'off', 'verify' or 'check'")
530
534
publicstaticletresolveImports:Option=Option("-resolve-imports",.flag, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Parse and resolve imports in input file(s)", group:.modes)
531
535
publicstaticletresourceDir:Option=Option("-resource-dir",.separate, attributes:[.helpHidden,.frontend,.argumentIsPath], metaVar:"</usr/lib/swift>", helpText:"The directory that holds the compiler resource files")
532
536
publicstaticletRmoduleInterfaceRebuild:Option=Option("-Rmodule-interface-rebuild",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emits a remark if an imported module needs to be re-compiled from its module interface")
@@ -562,6 +566,7 @@ extension Option {
562
566
publicstaticletsilUnrollThreshold:Option=Option("-sil-unroll-threshold",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<250>", helpText:"Controls the aggressiveness of loop unrolling")
563
567
publicstaticletsilVerifyAll:Option=Option("-sil-verify-all",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Verify SIL after each transform")
564
568
publicstaticletsilVerifyNone:Option=Option("-sil-verify-none",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Completely disable SIL verification")
569
+
publicstaticletskipImportInPublicInterface:Option=Option("-skip-import-in-public-interface",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Skip the import statement corresponding to a module name when printing the public interface.")
565
570
publicstaticletskipInheritedDocs:Option=Option("-skip-inherited-docs",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.supplementaryOutput], helpText:"Skip emitting doc comments for members inherited through classes or default implementations")
566
571
publicstaticletskipSynthesizedMembers:Option=Option("-skip-synthesized-members",.flag, attributes:[.noDriver], helpText:"Skip members inherited through classes or default implementations")
567
572
publicstaticletsolverDisableShrink:Option=Option("-solver-disable-shrink",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable the shrink phase of expression type checking")
publicstaticlettabWidth:Option=Option("-tab-width",.separate, attributes:[.noInteractive,.noBatch,.indent], metaVar:"<n>", helpText:"Width of tab character.", group:.codeFormatting)
587
592
publicstaticlettargetCpu:Option=Option("-target-cpu",.separate, attributes:[.frontend,.moduleInterface], helpText:"Generate code for a particular CPU variant")
593
+
publicstaticletminInliningTargetVersion:Option=Option("-target-min-inlining-version",.separate, attributes:[.frontend], helpText:"Require inlinable code with no '@available' attribute to back-deploy to this version of the '-target' OS")
588
594
publicstaticlettargetSdkName:Option=Option("-target-sdk-name",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Canonical name of the target SDK used for compilation")
589
595
publicstaticlettargetSdkVersion:Option=Option("-target-sdk-version",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"The version of target SDK used for compilation")
590
596
publicstaticlettargetVariantSdkVersion:Option=Option("-target-variant-sdk-version",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"The version of target variant SDK used for compilation")
0 commit comments