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-5
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ extension Option {
33
33
publicstaticletanalyzeRequirementMachine:Option=Option("-analyze-requirement-machine",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Print out requirement machine statistics at the end of the compilation job")
34
34
publicstaticletapiDiffDataDir:Option=Option("-api-diff-data-dir",.separate, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild,.argumentIsPath], metaVar:"<path>", helpText:"Load platform and version specific API migration data files from <path>. Ignored if -api-diff-data-file is specified.")
35
35
publicstaticletapiDiffDataFile:Option=Option("-api-diff-data-file",.separate, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild,.argumentIsPath], metaVar:"<path>", helpText:"API migration data is from <path>")
36
+
publicstaticletenableAppExtensionLibrary:Option=Option("-application-extension-library",.flag, attributes:[.frontend,.noInteractive], helpText:"Restrict code to those available for App Extension Libraries")
36
37
publicstaticletenableAppExtension:Option=Option("-application-extension",.flag, attributes:[.frontend,.noInteractive], helpText:"Restrict code to those available for App Extensions")
37
38
publicstaticletAssertConfig:Option=Option("-assert-config",.separate, attributes:[.frontend,.moduleInterface], helpText:"Specify the assert_configuration replacement. Possible values are Debug, Release, Unchecked, DisableReplacement.")
38
39
publicstaticletAssumeSingleThreaded:Option=Option("-assume-single-threaded",.flag, attributes:[.helpHidden,.frontend], helpText:"Assume that code will be executed in a single-threaded environment")
@@ -79,7 +80,6 @@ extension Option {
79
80
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.")
80
81
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.")
81
82
publicstaticletclangIncludeTreeRoot:Option=Option("-clang-include-tree-root",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<cas-id>", helpText:"Clang Include Tree CASID")
82
-
publicstaticletclangIncludeTree:Option=Option("-clang-include-tree",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use clang include tree")
83
83
publicstaticletclangScannerModuleCachePath:Option=Option("-clang-scanner-module-cache-path",.separate, attributes:[.frontend,.doesNotAffectIncrementalBuild,.argumentIsPath], helpText:"Specifies the Clang dependency scanner module cache path")
84
84
publicstaticletclangTarget:Option=Option("-clang-target",.separate, attributes:[.frontend], helpText:"Separately set the target we should use for internal Clang instance")
85
85
publicstaticletcodeCompleteCallPatternHeuristics:Option=Option("-code-complete-call-pattern-heuristics",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Use heuristics to guess whether we want call pattern completions")
@@ -114,7 +114,6 @@ extension Option {
114
114
publicstaticletdebugForbidTypecheckPrefix:Option=Option("-debug-forbid-typecheck-prefix",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Triggers llvm fatal_error if typechecker tries to typecheck a decl with the provided prefix name")
publicstaticletdebugInfoFormat:Option=Option("-debug-info-format=",.joined, attributes:[.frontend], helpText:"Specify the debug info format type to either 'dwarf' or 'codeview'")
117
-
publicstaticletdwarfVersion:Option=Option("-dwarf-version=",.joined, attributes:[.frontend], helpText:"DWARF debug info version to produce if requested")
118
117
publicstaticletdebugInfoStoreInvocation:Option=Option("-debug-info-store-invocation",.flag, attributes:[.frontend], helpText:"Emit the compiler invocation in the debug info.")
119
118
publicstaticletdebugMapping:Option=Option("-debug-mapping",.flag, attributes:[.noDriver], helpText:"Dumping information for debug purposes")
120
119
publicstaticletdebugMapping_:Option=Option("--debug-mapping",.flag, alias:Option.debugMapping, attributes:[.noDriver], helpText:"Dumping information for debug purposes")
@@ -222,6 +221,7 @@ extension Option {
222
221
publicstaticletdisableRequirementMachineLoopNormalization:Option=Option("-disable-requirement-machine-loop-normalization",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable stronger minimization algorithm, for debugging only")
223
222
publicstaticletdisableRequirementMachineReuse:Option=Option("-disable-requirement-machine-reuse",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable re-use of requirement machines for minimization, for debugging only")
224
223
publicstaticletdisableRoundTripDebugTypes:Option=Option("-disable-round-trip-debug-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disables verification of debug info mangling")
224
+
publicstaticletdisableSandbox:Option=Option("-disable-sandbox",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Disable using the sandbox when executing subprocesses")
225
225
publicstaticletdisableSilOwnershipVerifier:Option=Option("-disable-sil-ownership-verifier",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Do not verify ownership invariants during SIL Verification ")
226
226
publicstaticletdisableSilPartialApply:Option=Option("-disable-sil-partial-apply",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable use of partial_apply in SIL generation")
227
227
publicstaticletdisableSilPerfOptzns:Option=Option("-disable-sil-perf-optzns",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run SIL performance optimization passes")
@@ -278,6 +278,7 @@ extension Option {
278
278
publicstaticletdumpTypeRefinementContexts:Option=Option("-dump-type-refinement-contexts",.flag, attributes:[.frontend,.noInteractive,.doesNotAffectIncrementalBuild], helpText:"Type-check input file(s) and dump type refinement contexts(s)", group:.modes)
279
279
publicstaticletdumpTypeWitnessSystems:Option=Option("-dump-type-witness-systems",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enables dumping type witness systems from associated type inference")
280
280
publicstaticletdumpUsr:Option=Option("-dump-usr",.flag, attributes:[.frontend,.noInteractive], helpText:"Dump USR for each declaration reference")
281
+
publicstaticletdwarfVersion:Option=Option("-dwarf-version=",.joined, attributes:[.frontend], metaVar:"<version>", helpText:"DWARF debug info version to produce if requested")
281
282
publicstaticletD:Option=Option("-D",.joinedOrSeparate, attributes:[.frontend], helpText:"Marks a conditional compilation flag as true")
282
283
publicstaticletembedBitcodeMarker:Option=Option("-embed-bitcode-marker",.flag, attributes:[.frontend,.noInteractive], helpText:"Embed placeholder LLVM IR data as a marker")
283
284
publicstaticletembedBitcode:Option=Option("-embed-bitcode",.flag, attributes:[.frontend,.noInteractive], helpText:"Embed LLVM IR bitcode as data")
@@ -327,6 +328,7 @@ extension Option {
327
328
publicstaticletemitObjcHeaderPath:Option=Option("-emit-objc-header-path",.separate, attributes:[.frontend,.noInteractive,.argumentIsPath,.supplementaryOutput,.cacheInvariant], metaVar:"<path>", helpText:"Emit an Objective-C header file to <path>")
328
329
publicstaticletemitObjcHeader:Option=Option("-emit-objc-header",.flag, attributes:[.frontend,.noInteractive,.supplementaryOutput], helpText:"Emit an Objective-C header file")
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")
456
458
publicstaticletexperimentalLazyTypecheck:Option=Option("-experimental-lazy-typecheck",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Type-check lazily as needed to produce requested outputs")
457
459
publicstaticletexperimentalOneWayClosureParams:Option=Option("-experimental-one-way-closure-params",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable experimental support for one-way closure parameters")
460
+
publicstaticletexperimentalPackageInterfaceLoad:Option=Option("-experimental-package-interface-load",.flag, attributes:[.helpHidden,.frontend], helpText:"Enables loading a package interface if in the same package specified with package-name")
458
461
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.")
@@ -584,6 +587,7 @@ extension Option {
584
587
publicstaticletmodule:Option=Option("-module",.separate, attributes:[.noDriver], metaVar:"<name>", helpText:"Names of modules")
585
588
publicstaticletmodule_:Option=Option("--module",.separate, alias:Option.module, attributes:[.noDriver], metaVar:"<name>", helpText:"Names of modules")
586
589
publicstaticletnewDriverPath:Option=Option("-new-driver-path",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<path>", helpText:"Path of the new driver to be used")
590
+
publicstaticletnoClangIncludeTree:Option=Option("-no-clang-include-tree",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Do not use clang include tree, fallback to use CAS filesystem to build clang modules")
587
591
publicstaticletnoClangModuleBreadcrumbs:Option=Option("-no-clang-module-breadcrumbs",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't emit DWARF skeleton CUs for imported Clang modules. Use this when building a redistributable static archive.")
588
592
publicstaticletnoColorDiagnostics:Option=Option("-no-color-diagnostics",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Do not print diagnostics in color")
589
593
publicstaticletnoEmitModuleSeparatelyWMO:Option=Option("-no-emit-module-separately-wmo",.flag, attributes:[.helpHidden], helpText:"Force emitting the swiftmodule in the same job in wmo builds")
@@ -615,7 +619,7 @@ extension Option {
615
619
publicstaticletO:Option=Option("-O",.flag, attributes:[.frontend,.moduleInterface], helpText:"Compile with optimizations", group:.O)
616
620
publicstaticleto:Option=Option("-o",.joinedOrSeparate, attributes:[.frontend,.noInteractive,.autolinkExtract,.moduleWrap,.indent,.argumentIsPath,.cacheInvariant], metaVar:"<file>", helpText:"Write output to <file>")
617
621
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")
618
-
publicstaticletpackageName:Option=Option("-package-name",.separate, attributes:[.frontend], helpText:"Name of the package the module belongs to")
622
+
publicstaticletpackageName:Option=Option("-package-name",.separate, attributes:[.frontend,.moduleInterface], 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")
621
625
publicstaticletparseSil:Option=Option("-parse-sil",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file as SIL code, not Swift source")
@@ -627,6 +631,7 @@ extension Option {
627
631
publicstaticletpchOutputDir:Option=Option("-pch-output-dir",.separate, attributes:[.helpHidden,.frontend,.argumentIsPath], helpText:"Directory to persist automatically created precompiled bridging headers")
628
632
publicstaticletplaceholderDependencyModuleMap:Option=Option("-placeholder-dependency-module-map-file",.separate, attributes:[.frontend,.noDriver], metaVar:"<path>", helpText:"Specify a JSON file containing information of external Swift module dependencies")
629
633
publicstaticletplaygroundHighPerformance:Option=Option("-playground-high-performance",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Omit instrumentation that has a high runtime performance impact")
634
+
publicstaticletplaygroundOption:Option=Option("-playground-option",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Provide an option to the playground transform (if enabled)")
630
635
publicstaticletplayground:Option=Option("-playground",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Apply the playground semantics and transformation")
631
636
publicstaticletpluginPath:Option=Option("-plugin-path",.separate, attributes:[.frontend,.argumentIsPath], helpText:"Add directory to the plugin search path", group:.pluginSearch)
0 commit comments