[all-commits] [llvm/llvm-project] 65850d: [HIP] Hack around CMake incorrectly parsing OpenMP...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Wed Oct 22 07:46:51 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65850de74d7fb52044e68bd79cc55e7fa1edcf0d
https://github.com/llvm/llvm-project/commit/65850de74d7fb52044e68bd79cc55e7fa1edcf0d
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/hip-toolchain-no-rdc.hip
Log Message:
-----------
[HIP] Hack around CMake incorrectly parsing OpenMP support in HIP mode (#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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list