Merge pull request #85100 from adrian-prantl/163302154

Add a -debug-module-path frontend option
This commit is contained in:
Adrian Prantl
2025-11-03 12:30:55 -08:00
committed by GitHub
5 changed files with 23 additions and 3 deletions

View File

@@ -278,6 +278,9 @@ class IRGenOptions {
public:
std::string ModuleName;
/// The path to the main binary swiftmodule for the debug info.
std::string DebugModulePath;
/// The compilation directory for the debug info.
std::string DebugCompilationDir;

View File

@@ -653,6 +653,12 @@ def project_name : Separate<["-"], "project-name">,
def module_name_EQ : Joined<["-"], "module-name=">, Flags<[FrontendOption]>,
Alias<module_name>;
def debug_module_path : Separate<["-"], "debug-module-path">,
Flags<[FrontendOption]>,
HelpText<"Path to this module's binary swiftmodule artifact (required by debug info)">;
def debug_module_path_EQ : Joined<["-"], "debug-module-path=">, Flags<[FrontendOption]>,
Alias<debug_module_path>;
def module_alias : Separate<["-"], "module-alias">,
Flags<[FrontendOption, ModuleInterfaceOption]>,
MetaVarName<"<alias_name=real_name>">,