mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-10 06:57:08 -08:00
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>
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user