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
+7-5Lines changed: 7 additions & 5 deletions
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")
@@ -278,6 +277,7 @@ extension Option {
278
277
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
278
publicstaticletdumpTypeWitnessSystems:Option=Option("-dump-type-witness-systems",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enables dumping type witness systems from associated type inference")
280
279
publicstaticletdumpUsr:Option=Option("-dump-usr",.flag, attributes:[.frontend,.noInteractive], helpText:"Dump USR for each declaration reference")
280
+
publicstaticletdwarfVersion:Option=Option("-dwarf-version=",.joined, attributes:[.frontend], metaVar:"<version>", helpText:"DWARF debug info version to produce if requested")
281
281
publicstaticletD:Option=Option("-D",.joinedOrSeparate, attributes:[.frontend], helpText:"Marks a conditional compilation flag as true")
282
282
publicstaticletembedBitcodeMarker:Option=Option("-embed-bitcode-marker",.flag, attributes:[.frontend,.noInteractive], helpText:"Embed placeholder LLVM IR data as a marker")
283
283
publicstaticletembedBitcode:Option=Option("-embed-bitcode",.flag, attributes:[.frontend,.noInteractive], helpText:"Embed LLVM IR bitcode as data")
@@ -584,6 +584,7 @@ extension Option {
584
584
publicstaticletmodule:Option=Option("-module",.separate, attributes:[.noDriver], metaVar:"<name>", helpText:"Names of modules")
585
585
publicstaticletmodule_:Option=Option("--module",.separate, alias:Option.module, attributes:[.noDriver], metaVar:"<name>", helpText:"Names of modules")
586
586
publicstaticletnewDriverPath:Option=Option("-new-driver-path",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<path>", helpText:"Path of the new driver to be used")
587
+
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
588
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
589
publicstaticletnoColorDiagnostics:Option=Option("-no-color-diagnostics",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Do not print diagnostics in color")
589
590
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 +616,7 @@ extension Option {
615
616
publicstaticletO:Option=Option("-O",.flag, attributes:[.frontend,.moduleInterface], helpText:"Compile with optimizations", group:.O)
616
617
publicstaticleto:Option=Option("-o",.joinedOrSeparate, attributes:[.frontend,.noInteractive,.autolinkExtract,.moduleWrap,.indent,.argumentIsPath,.cacheInvariant], metaVar:"<file>", helpText:"Write output to <file>")
617
618
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")
619
+
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
622
publicstaticletparseSil:Option=Option("-parse-sil",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file as SIL code, not Swift source")
0 commit comments