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
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,7 @@ extension Option {
134
134
publicstaticletdisableCrossImportOverlays:Option=Option("-disable-cross-import-overlays",.flag, attributes:[.frontend,.noDriver], helpText:"Do not automatically import declared cross-import overlays.")
135
135
publicstaticletdisableDebuggerShadowCopies:Option=Option("-disable-debugger-shadow-copies",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable debugger shadow copies of local variables.This option is only useful for testing the compiler.")
136
136
publicstaticletdisableDeserializationRecovery:Option=Option("-disable-deserialization-recovery",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't attempt to recover from missing xrefs (etc) in swiftmodules")
137
+
publicstaticletdisableDeserializationSafety:Option=Option("-disable-deserialization-safety",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't avoid reading potentially unsafe decls in swiftmodules")
137
138
publicstaticletdisableDiagnosticPasses:Option=Option("-disable-diagnostic-passes",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run diagnostic passes")
138
139
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")
139
140
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")
@@ -174,6 +175,7 @@ extension Option {
174
175
publicstaticletdisableReadonlyStaticObjects:Option=Option("-disable-readonly-static-objects",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Avoid allocating static objects in a read-only data section")
175
176
publicstaticletdisableReflectionMetadata:Option=Option("-disable-reflection-metadata",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of reflection metadata for nominal types")
176
177
publicstaticletdisableReflectionNames:Option=Option("-disable-reflection-names",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of names of stored properties and enum cases inreflection metadata")
publicstaticletdisableRemoveDeprecatedCheck:Option=Option("-disable-remove-deprecated-check",.flag, attributes:[.noDriver], helpText:"Skip diagnosing removal of deprecated symbols")
178
180
publicstaticletdisableRemoveDeprecatedCheck_:Option=Option("--disable-remove-deprecated-check",.flag, alias:Option.disableRemoveDeprecatedCheck, attributes:[.noDriver], helpText:"Skip diagnosing removal of deprecated symbols")
179
181
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")
publicstaticletenableDeserializationRecovery:Option=Option("-enable-deserialization-recovery",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Attempt to recover from missing xrefs (etc) in swiftmodules")
327
+
publicstaticletenableDeserializationSafety:Option=Option("-enable-deserialization-safety",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Avoid reading potentially unsafe decls in swiftmodules")
325
328
publicstaticletenableDestroyHoisting:Option=Option("-enable-destroy-hoisting=",.joined, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"true|false", helpText:"Whether to enable destroy hoisting")
326
329
publicstaticletenableDynamicReplacementChaining:Option=Option("-enable-dynamic-replacement-chaining",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable chaining of dynamic replacements")
327
330
publicstaticletenableEmitGenericClassRoTList:Option=Option("-enable-emit-generic-class-ro_t-list",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable emission of a section with references to class_ro_t of generic class patterns")
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")
369
372
publicstaticletenablePrivateImports:Option=Option("-enable-private-imports",.flag, attributes:[.helpHidden,.frontend,.noInteractive], helpText:"Allows this module's internal and private API to be accessed")
publicstaticletenableRequirementMachineOpaqueArchetypes:Option=Option("-enable-requirement-machine-opaque-archetypes",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable more correct opaque archetype support, which is off by default because it might fail to produce a convergent rewrite system")
371
375
publicstaticletenableResilience:Option=Option("-enable-resilience",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Deprecated, use -enable-library-evolution instead")
372
376
publicstaticletenableRoundTripDebugTypes:Option=Option("-enable-round-trip-debug-types",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enables verification of debug info mangling")
@@ -541,6 +545,7 @@ extension Option {
541
545
publicstaticletO:Option=Option("-O",.flag, attributes:[.frontend,.moduleInterface], helpText:"Compile with optimizations", group:.O)
542
546
publicstaticleto:Option=Option("-o",.joinedOrSeparate, attributes:[.frontend,.noInteractive,.autolinkExtract,.moduleWrap,.indent,.argumentIsPath], metaVar:"<file>", helpText:"Write output to <file>")
543
547
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")
548
+
publicstaticletpackageName:Option=Option("-package-name",.separate, attributes:[.frontend], helpText:"Name of the package the module belongs to")
544
549
publicstaticletparseAsLibrary:Option=Option("-parse-as-library",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file(s) as libraries, not scripts")
545
550
publicstaticletparseSil:Option=Option("-parse-sil",.flag, attributes:[.frontend,.noInteractive], helpText:"Parse the input file as SIL code, not Swift source")
546
551
publicstaticletparseStdlib:Option=Option("-parse-stdlib",.flag, attributes:[.helpHidden,.frontend,.moduleInterface], helpText:"Parse the input file(s) as the Swift standard library")
tryassertNoDriverDiagnostics(args:"swiftc","file.swift","bar.swift","-module-name","MyModule","-package-name","mypkg","-emit-module","-emit-module-path","../../path/to/MyModule.swiftmodule"){ driver in
0 commit comments