summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-08-04 10:02:33 +0000
committerSam James <sam@gentoo.org>2024-09-09 19:15:21 +0100
commit316fc2c3ca792965b9a0389bd22c24392adb5949 (patch)
tree378c529de933a9a9ac678685ef394afe2ac461f7 /dev-util/hipify-clang
parentdev-util/roctracer: strip unsupported flags for potentially switched compiler (diff)
downloadgentoo-316fc2c3ca792965b9a0389bd22c24392adb5949.tar.gz
gentoo-316fc2c3ca792965b9a0389bd22c24392adb5949.tar.bz2
gentoo-316fc2c3ca792965b9a0389bd22c24392adb5949.zip
dev-util/hipify-clang: strip incompatible flag due to compiler switch
Closes: https://bugs.gentoo.org/928906 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37639 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/hipify-clang')
-rw-r--r--dev-util/hipify-clang/hipify-clang-6.1.1.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild b/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild
index ca0eeb20cc2a..d50b6a0df0f5 100644
--- a/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild
+++ b/dev-util/hipify-clang/hipify-clang-6.1.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
LLVM_COMPAT=( 18 )
-inherit cmake llvm-r1
+inherit cmake flag-o-matic llvm-r1
DESCRIPTION="A set of tools to translate CUDA source code into portable HIP C++"
HOMEPAGE="https://github.com/ROCm/HIPIFY"
@@ -36,6 +36,10 @@ src_prepare() {
}
src_configure() {
+ # 928906: CMakeLists.txt ignores CC/CXX, switches compiler to clang
+ # and fails if non-compatible CFLAGS/CXXFLAGS are used
+ strip-unsupported-flags
+
local mycmakeargs=(
-DCMAKE_PREFIX_PATH="$(get_llvm_prefix)/$(get_libdir)/cmake/llvm"
)