Commit 65850de
authored
[HIP] Hack around CMake incorrectly parsing OpenMP support in HIP mode (llvm#164482)
Summary:
The new driver uses an embedded clang job to handle the device
compilation. This correctly returns the linker as being `ld.lld`. The
CMake parser to detect things like OpenMP support in the linker will
parse the output of `-v` for the linker job. If the user is also using
LLD for their linker, it will think this job is the linker and then fail
as it does not see the required libraries. For these special HIP
compilations, just print the linker wrapper invocation and nothing else.
This will still show users the steps used to generate the binary but it
will hack around this issue.1 parent 18d4ba5 commit 65850de
File tree
2 files changed
+16
-1
lines changed- clang
- lib/Driver/ToolChains
- test/Driver
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9099 | 9099 | | |
9100 | 9100 | | |
9101 | 9101 | | |
| 9102 | + | |
| 9103 | + | |
| 9104 | + | |
9102 | 9105 | | |
9103 | 9106 | | |
9104 | 9107 | | |
| |||
9174 | 9177 | | |
9175 | 9178 | | |
9176 | 9179 | | |
9177 | | - | |
| 9180 | + | |
| 9181 | + | |
| 9182 | + | |
| 9183 | + | |
| 9184 | + | |
| 9185 | + | |
9178 | 9186 | | |
9179 | 9187 | | |
9180 | 9188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
0 commit comments