Skip to content

Conversation

@adrian-prantl
Copy link
Contributor

…able.

While testing the LLDB support for enhanced module tracking I noticed that the driver currently always uses a relative path for -debug-module-path, which is an obvious problem when compiling in a different directory, or if the swift module output is in a different path than the object file output. This patch addresses this by preferring moduleOutputInfo.output if available.

rdar://164524241
(cherry picked from commit 2ee2835)

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

…able.

While testing the LLDB support for enhanced module tracking I noticed
that the driver currently always uses a relative path for
-debug-module-path, which is an obvious problem when compiling in a
different directory, or if the swift module output is in a different
path than the object file output. This patch addresses this by
preferring moduleOutputInfo.output if available.

rdar://164524241

(Relanding with a relaxed test that doesn't encode the name of a temporary file)

(cherry picked from commit 3999166)
@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl
Copy link
Contributor Author

@swift-ci test windows

@adrian-prantl adrian-prantl merged commit 9f7942c into main Nov 20, 2025
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants