From 316fc2c3ca792965b9a0389bd22c24392adb5949 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Sun, 4 Aug 2024 10:02:33 +0000 Subject: dev-util/hipify-clang: strip incompatible flag due to compiler switch Closes: https://bugs.gentoo.org/928906 Signed-off-by: Sv. Lockal Closes: https://github.com/gentoo/gentoo/pull/37639 Signed-off-by: Sam James --- dev-util/hipify-clang/hipify-clang-6.1.1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" ) -- cgit v1.2.3-65-gdbad