Skip to content

Commit 7dd2fa6

Browse files
Fix -module-summary-path handling between driver and frontend
1 parent 08c6fd0 commit 7dd2fa6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ def emit_module_doc_path
4141
def emit_module_source_info : Flag<["-"], "emit-module-source-info">,
4242
HelpText<"Output module source info file">;
4343

44-
def module_summary_path
45-
: Separate<["-"], "module-summary-path">, MetaVarName<"<path>">,
46-
HelpText<"Combined module summary file <path>">;
47-
4844
def ignore_module_source_info : Flag<["-"], "ignore-module-source-info">,
4945
HelpText<"Avoid getting source location from .swiftsourceinfo files">;
5046

include/swift/Option/Options.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ def emit_module_summary_path :
445445
Flags<[FrontendOption, NoInteractiveOption, DoesNotAffectIncrementalBuild,
446446
ArgumentIsPath, SupplementaryOutput]>,
447447
MetaVarName<"<path>">, HelpText<"Output module summary file to <path>">;
448+
def module_summary_path : Separate<["-"], "module-summary-path">,
449+
Flags<[FrontendOption, ArgumentIsPath]>, MetaVarName<"<path>">,
450+
HelpText<"Combined module summary file <path>">;
448451

449452
def emit_module_interface :
450453
Flag<["-"], "emit-module-interface">,

lib/Driver/ToolChains.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ void ToolChain::addCommonFrontendArgs(const OutputInfo &OI,
230230
inputArgs.AddLastArg(arguments, options::OPT_import_underlying_module);
231231
inputArgs.AddLastArg(arguments, options::OPT_module_cache_path);
232232
inputArgs.AddLastArg(arguments, options::OPT_module_link_name);
233+
inputArgs.AddLastArg(arguments, options::OPT_module_summary_path);
233234
inputArgs.AddLastArg(arguments, options::OPT_nostdimport);
234235
inputArgs.AddLastArg(arguments, options::OPT_parse_stdlib);
235236
inputArgs.AddLastArg(arguments, options::OPT_resource_dir);

0 commit comments

Comments
 (0)