Skip to content

Commit c3e6a55

Browse files
authored
Merge pull request #2011 from sepy97/register-module-dependency
Sync swift flags
2 parents 46faeab + b77c2db commit c3e6a55

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Sources/SwiftOptions/Options.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ extension Option {
238238
public static let disableLlvmVerifyEach: Option = Option("-disable-llvm-verify-each", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Don't run the LLVM IR verifier after every pass.")
239239
public static let disableLlvmVerify: Option = Option("-disable-llvm-verify", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Don't run the LLVM IR verifier.")
240240
public static let disableMigratorFixits: Option = Option("-disable-migrator-fixits", .flag, attributes: [.frontend, .noInteractive], helpText: "Disable the Migrator phase which automatically applies fix-its")
241+
public static let disableModuleSelectorsInModuleInterface: Option = Option("-disable-module-selectors-in-module-interface", .flag, attributes: [.frontend, .noInteractive], helpText: "When emitting module interface files, do not use module selectors to avoid name collisions")
241242
public static let disableModulesValidateSystemHeaders: Option = Option("-disable-modules-validate-system-headers", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Disable validating system headers in the Clang importer")
242243
public static let disableNamedLazyImportAsMemberLoading: Option = Option("-disable-named-lazy-import-as-member-loading", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Import all of a type's import-as-member globals together, as Swift 5.10 and earlier did; temporary workaround for modules that are sensitive to this change")
243244
public static let disableNamedLazyMemberLoading: Option = Option("-disable-named-lazy-member-loading", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Disable per-name lazy member loading (obsolete)")
@@ -497,6 +498,7 @@ extension Option {
497498
public static let enableLlvmVerifyEach: Option = Option("-enable-llvm-verify-each", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Run the LLVM IR verifier after every pass.")
498499
public static let enableLlvmVfe: Option = Option("-enable-llvm-vfe", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Use LLVM IR Virtual Function Elimination on Swift class virtual tables")
499500
public static let enableLlvmWme: Option = Option("-enable-llvm-wme", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Use LLVM IR Witness Method Elimination on Swift protocol witness tables")
501+
public static let enableModuleSelectorsInModuleInterface: Option = Option("-enable-module-selectors-in-module-interface", .flag, attributes: [.frontend, .noInteractive], helpText: "When emitting module interface files, use module selectors to avoid name collisions")
500502
public static let enableMoveInoutStackProtector: Option = Option("-enable-move-inout-stack-protector", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Enable the stack protector by moving values to temporaries")
501503
public static let enableNewLlvmPassManager: Option = Option("-enable-new-llvm-pass-manager", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Enable the new llvm pass manager")
502504
public static let enableNewOperatorLookup: Option = Option("-enable-new-operator-lookup", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Enable the new operator decl and precedencegroup lookup behavior")
@@ -819,6 +821,7 @@ extension Option {
819821
public static let dependencyScanCacheRemarks: Option = Option("-Rdependency-scan-cache", .flag, attributes: [.frontend, .noDriver], helpText: "Emit remarks indicating use of the serialized module dependency scanning cache.")
820822
public static let readLegacyTypeInfoPathEQ: Option = Option("-read-legacy-type-info-path=", .joined, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Read legacy type layout from the given path instead of default path")
821823
public static let reflectionMetadataForDebuggerOnly: Option = Option("-reflection-metadata-for-debugger-only", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Emit reflection metadata for debugger only, don't make them available at runtime")
824+
public static let registerModuleDependency: Option = Option("-register-module-dependency", .separate, helpText: "Register module for dependency scan without importing in the frontend")
822825
public static let RemoveRuntimeAsserts: Option = Option("-remove-runtime-asserts", .flag, attributes: [.frontend], helpText: "Remove runtime safety checks.")
823826
public static let repl: Option = Option("-repl", .flag, attributes: [.helpHidden, .frontend, .noBatch], helpText: "REPL mode (the default if there is no input file)", group: .modes)
824827
public static let reportErrorsToDebugger: Option = Option("-report-errors-to-debugger", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Deprecated, will be removed in future versions.")
@@ -1140,6 +1143,8 @@ extension Option {
11401143
Option.debugInverseRequirements,
11411144
Option.debugMapping,
11421145
Option.debugMapping_,
1146+
Option.debugModulePathEQ,
1147+
Option.debugModulePath,
11431148
Option.debugPrefixMap,
11441149
Option.debugRequirementMachine,
11451150
Option.debugTimeExpressionTypeChecking,
@@ -1245,6 +1250,7 @@ extension Option {
12451250
Option.disableLlvmVerifyEach,
12461251
Option.disableLlvmVerify,
12471252
Option.disableMigratorFixits,
1253+
Option.disableModuleSelectorsInModuleInterface,
12481254
Option.disableModulesValidateSystemHeaders,
12491255
Option.disableNamedLazyImportAsMemberLoading,
12501256
Option.disableNamedLazyMemberLoading,
@@ -1504,6 +1510,7 @@ extension Option {
15041510
Option.enableLlvmVerifyEach,
15051511
Option.enableLlvmVfe,
15061512
Option.enableLlvmWme,
1513+
Option.enableModuleSelectorsInModuleInterface,
15071514
Option.enableMoveInoutStackProtector,
15081515
Option.enableNewLlvmPassManager,
15091516
Option.enableNewOperatorLookup,
@@ -1581,8 +1588,6 @@ extension Option {
15811588
Option.explicitAutoLinking,
15821589
Option.explicitDependencyGraphFormat,
15831590
Option.explicitInterfaceModuleBuild,
1584-
Option.debugModulePathEQ,
1585-
Option.debugModulePath,
15861591
Option.driverExplicitModuleBuild,
15871592
Option.explicitSwiftModuleMap,
15881593
Option.exportAs,
@@ -1828,6 +1833,7 @@ extension Option {
18281833
Option.dependencyScanCacheRemarks,
18291834
Option.readLegacyTypeInfoPathEQ,
18301835
Option.reflectionMetadataForDebuggerOnly,
1836+
Option.registerModuleDependency,
18311837
Option.RemoveRuntimeAsserts,
18321838
Option.repl,
18331839
Option.reportErrorsToDebugger,

0 commit comments

Comments
 (0)