summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/oidn/oidn-2.1.0.ebuild')
-rw-r--r--media-libs/oidn/oidn-2.1.0.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/media-libs/oidn/oidn-2.1.0.ebuild b/media-libs/oidn/oidn-2.1.0.ebuild
index f3b63b4ce34d..6f9b87d1f737 100644
--- a/media-libs/oidn/oidn-2.1.0.ebuild
+++ b/media-libs/oidn/oidn-2.1.0.ebuild
@@ -43,6 +43,16 @@ PATCHES=(
"${FILESDIR}/${PN}-2.1.0-amdgpu-targets.patch"
)
+src_prepare() {
+ if use hip; then
+ # https://bugs.gentoo.org/930391
+ sed "/-Wno-unused-result/s:): --rocm-path=${EPREFIX}/usr/lib):" \
+ -i devices/hip/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DOIDN_DEVICE_CUDA=$(usex cuda)