dev-cpp/benchmark: Add support for debug USE flag

Closes: https://bugs.gentoo.org/764653
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19011
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
William Breathitt Gray
2021-01-10 06:27:27 +09:00
committed by Sergei Trofimovich
parent 4add4f893c
commit 90660acc63

View File

@@ -12,7 +12,7 @@ SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
IUSE="test"
IUSE="debug test"
RESTRICT="!test? ( test )"
PATCHES=(
@@ -26,5 +26,7 @@ src_configure() {
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF
)
use debug || append-cppflags -DNDEBUG
cmake_src_configure
}