Skip to content

Commit f0e7fd6

Browse files
authored
Merge pull request swiftlang#34071 from artemcm/MoveOptionsOutOfTheInterfaceWay
Move explicit module frontend options out of the set of flags emitted into module interfaces.
2 parents 7dd6080 + 692fdde commit f0e7fd6

File tree

1 file changed

+31
-34
lines changed

1 file changed

+31
-34
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -175,40 +175,6 @@ def autolink_library : Separate<["-"], "autolink-library">,
175175
def disable_typo_correction : Flag<["-"], "disable-typo-correction">,
176176
HelpText<"Disable typo correction">;
177177

178-
} // end let Flags = [FrontendOption, NoDriverOption]
179-
180-
def debug_crash_Group : OptionGroup<"<automatic crashing options>">;
181-
class DebugCrashOpt : Group<debug_crash_Group>;
182-
183-
184-
// Flags that are saved into module interfaces
185-
let Flags = [FrontendOption, NoDriverOption, HelpHidden, ModuleInterfaceOption] in {
186-
187-
def enable_objc_interop :
188-
Flag<["-"], "enable-objc-interop">,
189-
HelpText<"Enable Objective-C interop code generation and config directives">;
190-
191-
def disable_objc_interop :
192-
Flag<["-"], "disable-objc-interop">,
193-
HelpText<"Disable Objective-C interop code generation and config directives">;
194-
195-
def enable_objc_attr_requires_foundation_module :
196-
Flag<["-"], "enable-objc-attr-requires-foundation-module">,
197-
HelpText<"Enable requiring uses of @objc to require importing the "
198-
"Foundation module">;
199-
200-
def disable_objc_attr_requires_foundation_module :
201-
Flag<["-"], "disable-objc-attr-requires-foundation-module">,
202-
HelpText<"Disable requiring uses of @objc to require importing the "
203-
"Foundation module">;
204-
205-
def enable_experimental_concurrency :
206-
Flag<["-"], "enable-experimental-concurrency">,
207-
HelpText<"Enable experimental concurrency model">;
208-
209-
def enable_resilience : Flag<["-"], "enable-resilience">,
210-
HelpText<"Deprecated, use -enable-library-evolution instead">;
211-
212178
def disable_implicit_swift_modules: Flag<["-"], "disable-implicit-swift-modules">,
213179
HelpText<"Disable building Swift modules explicitly by the compiler">;
214180

@@ -231,6 +197,37 @@ def batch_scan_input_file
231197
def import_prescan : Flag<["-"], "import-prescan">,
232198
HelpText<"When performing a dependency scan, only dentify all imports of the main Swift module sources">;
233199

200+
} // end let Flags = [FrontendOption, NoDriverOption]
201+
202+
def debug_crash_Group : OptionGroup<"<automatic crashing options>">;
203+
class DebugCrashOpt : Group<debug_crash_Group>;
204+
205+
206+
// Flags that are saved into module interfaces
207+
let Flags = [FrontendOption, NoDriverOption, HelpHidden, ModuleInterfaceOption] in {
208+
def enable_objc_interop :
209+
Flag<["-"], "enable-objc-interop">,
210+
HelpText<"Enable Objective-C interop code generation and config directives">;
211+
212+
def disable_objc_interop :
213+
Flag<["-"], "disable-objc-interop">,
214+
HelpText<"Disable Objective-C interop code generation and config directives">;
215+
216+
def enable_objc_attr_requires_foundation_module :
217+
Flag<["-"], "enable-objc-attr-requires-foundation-module">,
218+
HelpText<"Enable requiring uses of @objc to require importing the "
219+
"Foundation module">;
220+
221+
def disable_objc_attr_requires_foundation_module :
222+
Flag<["-"], "disable-objc-attr-requires-foundation-module">,
223+
HelpText<"Disable requiring uses of @objc to require importing the "
224+
"Foundation module">;
225+
226+
def enable_experimental_concurrency :
227+
Flag<["-"], "enable-experimental-concurrency">,
228+
HelpText<"Enable experimental concurrency model">;
229+
def enable_resilience : Flag<["-"], "enable-resilience">,
230+
HelpText<"Deprecated, use -enable-library-evolution instead">;
234231
}
235232

236233
// HIDDEN FLAGS

0 commit comments

Comments
 (0)