diff options
author | Yiyang Wu <xgreenlandforwyy@gmail.com> | 2024-05-20 23:22:32 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-26 10:19:02 +0100 |
commit | f91f21df491628b88a62cfa8abd67423ed88f4f2 (patch) | |
tree | e75e9d092cd24ac2a73c3beffa03890456a66124 /dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild | |
parent | dev-util/roctracer: add 6.1.1 (diff) | |
download | gentoo-f91f21df491628b88a62cfa8abd67423ed88f4f2.tar.gz gentoo-f91f21df491628b88a62cfa8abd67423ed88f4f2.tar.bz2 gentoo-f91f21df491628b88a62cfa8abd67423ed88f4f2.zip |
dev-libs/rocm-device-libs: ensure correct clang selected
Originally-authored-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild')
-rw-r--r-- | dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild index 73ec778c950e..91d34a16bf69 100644 --- a/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild +++ b/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild @@ -69,6 +69,9 @@ src_configure() { -DLLVM_DIR="$(get_llvm_prefix)" ) cmake_src_configure + # do not trust CMake with autoselecting Clang, as it autoselects the latest one + # producing too modern LLVM bitcode and causing linker errors in other packages + CC="$(get_llvm_prefix)/bin/clang" CXX="$(get_llvm_prefix)/bin/clang++" cmake_src_configure } src_install() { |