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
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ extension Option {
70
70
publicstaticletcasPluginPath:Option=Option("-cas-plugin-path",.separate, attributes:[.frontend], metaVar:"<path>", helpText:"Path to CAS Plugin")
71
71
publicstaticletcheckApiAvailabilityOnly:Option=Option("-check-api-availability-only",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Deprecated, has no effect")
72
72
publicstaticletcheckOnoneCompleteness:Option=Option("-check-onone-completeness",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print errors if the compile OnoneSupport module is missing symbols")
73
+
publicstaticletcheckedAsyncObjcBridging:Option=Option("-checked-async-objc-bridging=",.joined, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Control whether checked continuations are used when bridging async calls from Swift to ObjC: 'on', 'off' ")
73
74
publicstaticletclangBuildSessionFile:Option=Option("-clang-build-session-file",.separate, attributes:[.frontend,.argumentIsPath], helpText:"Use the last modification time of <file> as the underlying Clang build session timestamp")
74
75
publicstaticletclangHeaderExposeDecls:Option=Option("-clang-header-expose-decls=",.joined, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"all-public|has-expose-attr", helpText:"Which declarations should be exposed in the generated clang header.")
75
76
publicstaticletclangHeaderExposeModule:Option=Option("-clang-header-expose-module",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<imported-module-name>=<generated-header-name>", helpText:"Allow the compiler to assume that APIs from the specified module are exposed to C/C++/Objective-C in another generated header, so that APIs in the current module that depend on declarations from the specified module can be exposed in the generated header.")
@@ -137,9 +138,12 @@ extension Option {
137
138
publicstaticletdisableAccessControl:Option=Option("-disable-access-control",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't respect access control restrictions")
138
139
publicstaticletdisableActorDataRaceChecks:Option=Option("-disable-actor-data-race-checks",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Disable runtime checks for actor data races")
139
140
publicstaticletdisableAliasModuleNamesInModuleInterface:Option=Option("-disable-alias-module-names-in-module-interface",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"When emitting a module interface, disable disambiguating modules using distinct alias names")
141
+
publicstaticletdisableAllAutolinking:Option=Option("-disable-all-autolinking",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable all Swift autolink directives")
140
142
publicstaticletdisableArcOpts:Option=Option("-disable-arc-opts",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run SIL ARC optimization passes.")
141
143
publicstaticletdisableAstVerifier:Option=Option("-disable-ast-verifier",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Do not run the AST verifier during compilation. NOTE: This lets the user override the default behavior on whether or not the ASTVerifier is run. The default behavior is to run the verifier when asserts are enabled and not run it when asserts are disabled. NOTE: Can not be used if enable-ast-verifier is used as well")
144
+
publicstaticletdisableAutolinkFrameworks:Option=Option("-disable-autolink-frameworks",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable autolinking against all frameworks")
142
145
publicstaticletdisableAutolinkFramework:Option=Option("-disable-autolink-framework",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable autolinking against the provided framework")
146
+
publicstaticletdisableAutolinkLibrary:Option=Option("-disable-autolink-library",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable autolinking against the provided library")
143
147
publicstaticletdisableAutolinkingRuntimeCompatibilityConcurrency:Option=Option("-disable-autolinking-runtime-compatibility-concurrency",.flag, attributes:[.frontend], helpText:"Do not use autolinking for the concurrency runtime compatibility library")
144
148
publicstaticletdisableAutolinkingRuntimeCompatibilityDynamicReplacements:Option=Option("-disable-autolinking-runtime-compatibility-dynamic-replacements",.flag, attributes:[.frontend], helpText:"Do not use autolinking for the dynamic replacement runtime compatibility library")
145
149
publicstaticletdisableAutolinkingRuntimeCompatibility:Option=Option("-disable-autolinking-runtime-compatibility",.flag, attributes:[.frontend], helpText:"Do not use autolinking for runtime compatibility libraries")
@@ -439,12 +443,13 @@ extension Option {
439
443
publicstaticletdriverExperimentalExplicitModuleBuild:Option=Option("-experimental-explicit-module-build",.flag, alias:Option.driverExplicitModuleBuild, attributes:[.helpHidden], helpText:"Prebuild module dependencies to make them explicit")
440
444
publicstaticletforceWorkaroundBrokenModules:Option=Option("-experimental-force-workaround-broken-modules",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Attempt unsafe recovery for imported modules with broken modularization")
441
445
publicstaticletexperimentalHermeticSealAtLink:Option=Option("-experimental-hermetic-seal-at-link",.flag, attributes:[.helpHidden,.frontend], helpText:"Library code can assume that all clients are visible at linktime, and aggressively strip unused code")
442
-
publicstaticletexperimentalLazyTypecheck:Option=Option("-experimental-lazy-typecheck",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Parse input file(s), then type-check lazily as needed to produce requested outputs", group:.modes)
446
+
publicstaticletexperimentalLazyTypecheck:Option=Option("-experimental-lazy-typecheck",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Type-check lazily as needed to produce requested outputs")
443
447
publicstaticletexperimentalOneWayClosureParams:Option=Option("-experimental-one-way-closure-params",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for one-way closure parameters")
444
448
publicstaticletExperimentalPerformanceAnnotations:Option=Option("-experimental-performance-annotations",.flag, attributes:[.helpHidden,.frontend], helpText:"Deprecated, has no effect")
publicstaticletplatformCCallingConvention:Option=Option("-experimental-platform-c-calling-convention",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Which calling convention is used to perform non-swift calls. Defaults to llvm's standard C calling convention.")
447
451
publicstaticletexperimentalPrintFullConvention:Option=Option("-experimental-print-full-convention",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"When emitting a module interface or SIL, emit additional @convention arguments, regardless of whether they were written in the source. Also requires -use-clang-function-types to be enabled.")
452
+
publicstaticletexperimentalSerializeExternalDeclsOnly:Option=Option("-experimental-serialize-external-decls-only",.flag, attributes:[.frontend,.noDriver], helpText:"Only serialize decls that should be exposed to clients")
448
453
publicstaticletexperimentalSkipAllFunctionBodies:Option=Option("-experimental-skip-all-function-bodies",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Skip type-checking function bodies and all SIL generation")
449
454
publicstaticletexperimentalSkipNonInlinableFunctionBodiesWithoutTypes:Option=Option("-experimental-skip-non-inlinable-function-bodies-without-types",.flag, attributes:[.helpHidden,.frontend], helpText:"Skip work on non-inlinable function bodies that do not declare nested types")
450
455
publicstaticletexperimentalSkipNonInlinableFunctionBodies:Option=Option("-experimental-skip-non-inlinable-function-bodies",.flag, attributes:[.helpHidden,.frontend], helpText:"Skip type-checking and SIL generation for non-inlinable function bodies")
@@ -600,6 +605,7 @@ extension Option {
600
605
publicstaticleto:Option=Option("-o",.joinedOrSeparate, attributes:[.frontend,.noInteractive,.autolinkExtract,.moduleWrap,.indent,.argumentIsPath,.cacheInvariant], metaVar:"<file>", helpText:"Write output to <file>")
601
606
publicstaticletpackageDescriptionVersion:Option=Option("-package-description-version",.separate, attributes:[.helpHidden,.frontend,.moduleInterface], metaVar:"<vers>", helpText:"The version number to be applied on the input for the PackageDescription availability kind")
602
607
publicstaticletpackageName:Option=Option("-package-name",.separate, attributes:[.frontend], helpText:"Name of the package the module belongs to")
publicstaticletparseAsLibrary:Option=Option("-parse-as-library",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file(s) as libraries, not scripts")
604
610
publicstaticletparseSil:Option=Option("-parse-sil",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file as SIL code, not Swift source")
605
611
publicstaticletparseStdlib:Option=Option("-parse-stdlib",.flag, attributes:[.helpHidden,.frontend,.moduleInterface], helpText:"Parse the input file(s) as the Swift standard library")
@@ -661,6 +667,7 @@ extension Option {
661
667
publicstaticletresolveImports:Option=Option("-resolve-imports",.flag, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Parse and resolve imports in input file(s)", group:.modes)
662
668
publicstaticletresourceDir:Option=Option("-resource-dir",.separate, attributes:[.helpHidden,.frontend,.argumentIsPath], metaVar:"</usr/lib/swift>", helpText:"The directory that holds the compiler resource files")
663
669
publicstaticletremarkIndexingSystemModule:Option=Option("-Rindexing-system-module",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Emit a remark when indexing a system module")
670
+
publicstaticletremarkMacroLoading:Option=Option("-Rmacro-loading",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Emit remarks about loaded macro implementations")
664
671
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")
665
672
publicstaticletremarkLoadingModule:Option=Option("-Rmodule-loading",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Emit remarks about loaded module")
666
673
publicstaticletremarkModuleRecovery:Option=Option("-Rmodule-recovery",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Emit remarks about contextual inconsistencies in loaded modules")
@@ -768,6 +775,7 @@ extension Option {
768
775
publicstaticletvalidateTbdAgainstIrEQ:Option=Option("-validate-tbd-against-ir=",.joined, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<level>", helpText:"Compare the symbols in the IR against the TBD file that would be generated.")
769
776
publicstaticletvalueRecursionThreshold:Option=Option("-value-recursion-threshold",.separate, attributes:[.helpHidden,.frontend,.doesNotAffectIncrementalBuild], helpText:"Set the maximum depth for direct recursion in value types")
770
777
publicstaticletverifyAdditionalFile:Option=Option("-verify-additional-file",.separate, attributes:[.frontend,.noDriver], helpText:"Verify diagnostics in this file in addition to source files")
778
+
publicstaticletverifyAdditionalPrefix:Option=Option("-verify-additional-prefix",.separate, attributes:[.frontend,.noDriver], helpText:"Check for diagnostics with the prefix expected-<PREFIX> as well as expected-")
771
779
publicstaticletverifyAllSubstitutionMaps:Option=Option("-verify-all-substitution-maps",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Verify all SubstitutionMaps on construction")
772
780
publicstaticletverifyApplyFixes:Option=Option("-verify-apply-fixes",.flag, attributes:[.frontend,.noDriver], helpText:"Like -verify, but updates the original source file")
773
781
publicstaticletverifyDebugInfo:Option=Option("-verify-debug-info",.flag, attributes:[.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Verify the binary representation of debug output.")
0 commit comments