summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2023-02-08 10:38:50 +0800
committerSam James <sam@gentoo.org>2023-02-08 04:17:36 +0000
commit526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6 (patch)
tree7c4b3233e072540494724002c4c0e8c2298b4d9c
parentdev-libs/rocr-runtime: disable non-FHS install (diff)
downloadgentoo-526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6.tar.gz
gentoo-526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6.tar.bz2
gentoo-526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6.zip
dev-libs/rocr-runtime: NDEBUG by default; add debug use flag
The rocr-runtime relies on -DNDEBUG cxxflag to build without debug code. Previously debug codes are turned on and issues are observed by users. Reference: https://github.com/RadeonOpenCompute/ROCm/issues/1880#issuecomment-1416759759 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29297 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild (renamed from dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild)6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild
index 99184725f576..f408d4213314 100644
--- a/dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild
+++ b/dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake llvm
+inherit cmake flag-o-matic llvm
LLVM_MAX_SLOT=15
@@ -25,6 +25,7 @@ PATCHES=(
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
+IUSE="debug"
COMMON_DEPEND="dev-libs/elfutils"
RDEPEND="${COMMON_DEPEND}"
@@ -36,8 +37,6 @@ DEPEND="${COMMON_DEPEND}
BDEPEND="app-editors/vim-core"
# vim-core is needed for "xxd"
-CMAKE_BUILD_TYPE=Release
-
src_prepare() {
# ... otherwise system llvm/clang is used ...
sed -e "/find_package(Clang REQUIRED HINTS /s:\${CMAKE_INSTALL_PREFIX}/llvm \${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm:$(get_llvm_prefix ${LLVM_MAX_SLOT}):" -i image/blit_src/CMakeLists.txt || die
@@ -49,6 +48,7 @@ src_prepare() {
}
src_configure() {
+ use debug || append-cxxflags "-DNDEBUG"
local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF )
cmake_src_configure
}