-
Couldn't load subscription status.
- Fork 10.6k
Add a -debug-module-path frontend option #85100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
include/swift/Option/Options.td
Outdated
| def module_name_EQ : Joined<["-"], "module-name=">, Flags<[FrontendOption]>, | ||
| Alias<module_name>; | ||
|
|
||
| def module_path : Separate<["-"], "module-path">, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we call this something like -debug-module-path? Even though it's just a frontend flag I think someone seeing it could easily assume it's a more general purpose option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think that's better. That would also be in line with what I chose for the IRGenOption.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed.
This new option allows the Driver to pass the path to a compilation job's own binary swiftmodule artifact to the frontend. The compiler then stores this path in the debug info, to allow clients like LLDB to unambiguously know which binary Swift module belongs to which compile unit. rdar://163302154
c993eb1 to
cb4efa0
Compare
|
test with swiftlang/swift-driver#2004 |
|
test with swiftlang/swift-driver#2004 |
This new option allows the Driver to pass the path to a compilation job's own binary swiftmodule artifact to the frontend. The compiler then stores this path in the debug info, to allow clients like LLDB to unambiguously know which binary Swift module belongs to which compile unit.
rdar://163302154