summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild')
-rw-r--r--dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
index 192ddca854e..fcb897e2ab3 100644
--- a/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
+++ b/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
@@ -29,6 +29,12 @@ RDEPEND=">=dev-libs/rocm-device-libs-${PV}
>=sys-devel/llvm-roc-${PV}:="
DEPEND="${RDEPEND}"
+src_prepare() {
+ sed '/sys::path::append(HIPPath/s,"hip","lib/hip",' -i src/comgr-env.cpp || die
+ sed '/sys::path::append(LLVMPath/s,"llvm","lib/llvm/roc",' -i src/comgr-env.cpp || die
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
-DLLD_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/lld"