@@ -278,7 +278,8 @@ def module_cache_path : Separate<["-"], "module-cache-path">,
278
278
Flags<[FrontendOption, DoesNotAffectIncrementalBuild, ArgumentIsPath]>,
279
279
HelpText<"Specifies the Clang module cache path">;
280
280
281
- def module_name : Separate<["-"], "module-name">, Flags<[FrontendOption, ParseableInterfaceOption]>,
281
+ def module_name : Separate<["-"], "module-name">,
282
+ Flags<[FrontendOption, ParseableInterfaceOption]>,
282
283
HelpText<"Name of the module to build">;
283
284
def module_name_EQ : Joined<["-"], "module-name=">, Flags<[FrontendOption]>,
284
285
Alias<module_name>;
@@ -464,17 +465,20 @@ def Xlinker : Separate<["-"], "Xlinker">,
464
465
465
466
def O_Group : OptionGroup<"<optimization level options>">;
466
467
467
- def Onone : Flag<["-"], "Onone">, Group<O_Group>, Flags<[FrontendOption]>,
468
+ def Onone : Flag<["-"], "Onone">, Group<O_Group>,
469
+ Flags<[FrontendOption, ParseableInterfaceOption]>,
468
470
HelpText<"Compile without any optimization">;
469
- def O : Flag<["-"], "O">, Group<O_Group>, Flags<[FrontendOption]>,
471
+ def O : Flag<["-"], "O">, Group<O_Group>,
472
+ Flags<[FrontendOption, ParseableInterfaceOption]>,
470
473
HelpText<"Compile with optimizations">;
471
- def Osize : Flag<["-"], "Osize">, Group<O_Group>, Flags<[FrontendOption]>,
474
+ def Osize : Flag<["-"], "Osize">, Group<O_Group>,
475
+ Flags<[FrontendOption, ParseableInterfaceOption]>,
472
476
HelpText<"Compile with optimizations and target small code size">;
473
477
def Ounchecked : Flag<["-"], "Ounchecked">, Group<O_Group>,
474
- Flags<[FrontendOption]>,
478
+ Flags<[FrontendOption, ParseableInterfaceOption ]>,
475
479
HelpText<"Compile with optimizations and remove runtime safety checks">;
476
480
def Oplayground : Flag<["-"], "Oplayground">, Group<O_Group>,
477
- Flags<[HelpHidden, FrontendOption]>,
481
+ Flags<[HelpHidden, FrontendOption, ParseableInterfaceOption ]>,
478
482
HelpText<"Compile with optimizations appropriate for a playground">;
479
483
480
484
def RemoveRuntimeAsserts : Flag<["-"], "remove-runtime-asserts">,
0 commit comments