Commit 8e20860
[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 ea371ec commit 8e20860
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9263 | 9263 | | |
9264 | 9264 | | |
9265 | 9265 | | |
| 9266 | + | |
| 9267 | + | |
| 9268 | + | |
9266 | 9269 | | |
9267 | 9270 | | |
9268 | 9271 | | |
| |||
9360 | 9363 | | |
9361 | 9364 | | |
9362 | 9365 | | |
9363 | | - | |
| 9366 | + | |
| 9367 | + | |
| 9368 | + | |
| 9369 | + | |
| 9370 | + | |
| 9371 | + | |
9364 | 9372 | | |
9365 | 9373 | | |
9366 | 9374 | | |
| |||
0 commit comments