commit:     ba009344fb466ef56be9f97f9f3ca0e0e260af98
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Sep 28 12:15:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 22 11:34:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba009344

dev-cpp/abseil-cpp: 20250814.1 pass DEBUG/NDEBUG

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44225
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/abseil-cpp/abseil-cpp-20250814.1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20250814.1.ebuild 
b/dev-cpp/abseil-cpp/abseil-cpp-20250814.1.ebuild
index c1a8ca5d1955..f80188a99e87 100644
--- a/dev-cpp/abseil-cpp/abseil-cpp-20250814.1.ebuild
+++ b/dev-cpp/abseil-cpp/abseil-cpp-20250814.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{10..13} )
 
-inherit cmake-multilib python-any-r1
+inherit cmake-multilib flag-o-matic python-any-r1
 
 DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
 HOMEPAGE="https://abseil.io/";
@@ -21,7 +21,7 @@ SLOT="0/${PV:2:4}.$(ver_cut 2).0"
 # SLOT="0/${PV:2:4}.0.0"
 
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
-IUSE="test test-helpers"
+IUSE="debug test test-helpers"
 
 RDEPEND="
        test? (
@@ -63,6 +63,8 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       append-cxxflags $(usex debug '-DDEBUG' '-DNDEBUG')
+
        local mycmakeargs=(
                -DABSL_ENABLE_INSTALL="yes"
                -DABSL_USE_EXTERNAL_GOOGLETEST="yes"

Reply via email to