Commit 600e97a
committed
[-debug-module-path] Prefer the moduleOutputInfo.output path if available.
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)1 parent c3e6a55 commit 600e97a
File tree
2 files changed
+21
-1
lines changed- Sources/SwiftDriver/Jobs
- Tests/SwiftDriverTests
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1078 | 1096 | | |
1079 | 1097 | | |
1080 | 1098 | | |
| |||
0 commit comments