Skip to content

Commit 0055818

Browse files
committed
Make -disable-experimental-parser-round-trip a module interface option
When building .swiftmodule from .swiftinterface, `disable-experimental-parser-round-trip` should be applied if the interface file with build with the flag.
1 parent adf3bde commit 0055818

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,6 @@ def platform_c_calling_convention_EQ :
13891389
Joined<["-"], "experimental-platform-c-calling-convention=">,
13901390
Alias<platform_c_calling_convention>;
13911391

1392-
def disable_experimental_parser_round_trip : Flag<["-"],
1393-
"disable-experimental-parser-round-trip">,
1394-
HelpText<"Disable round trip through the new swift parser">;
13951392

13961393
def disable_sending_args_and_results_with_region_isolation : Flag<["-"],
13971394
"disable-sending-args-and-results-with-region-based-isolation">,
@@ -1411,3 +1408,8 @@ def platform_availability_inheritance_map_path
14111408
HelpText<"Path of the platform inheritance platform map">;
14121409

14131410
} // end let Flags = [FrontendOption, NoDriverOption, HelpHidden]
1411+
1412+
def disable_experimental_parser_round_trip : Flag<["-"],
1413+
"disable-experimental-parser-round-trip">,
1414+
HelpText<"Disable round trip through the new swift parser">,
1415+
Flags<[FrontendOption, NoDriverOption, HelpHidden, ModuleInterfaceOptionIgnorable]>;

0 commit comments

Comments
 (0)