Skip to content

Conversation

@adrian-prantl
Copy link
Contributor

@adrian-prantl adrian-prantl commented Dec 3, 2025

…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)

Explanation: use absolute paths for -debug-module-path when possible
Scope: Debug Info for EBM builds
Issues: rdar://164524241
Original PRs: #2004
Risk: Low
Testing: Unit test
Reviewers: @owenv

…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

This PR is identical to #2020 which I accidentally merged into main.

@adrian-prantl adrian-prantl merged commit 4815781 into release/6.3 Dec 4, 2025
20 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.

5 participants