From 97344eb19de03e825c7b2b099479eb1e63b96b1b Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 2 Oct 2021 13:47:50 +0200 Subject: sys-devel/lld: Ensure NDEBUG correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-devel/lld/lld-14.0.0.9999.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys-devel/lld/lld-14.0.0.9999.ebuild') diff --git a/sys-devel/lld/lld-14.0.0.9999.ebuild b/sys-devel/lld/lld-14.0.0.9999.ebuild index 68762b0a03cc..8bcce2b3022a 100644 --- a/sys-devel/lld/lld-14.0.0.9999.ebuild +++ b/sys-devel/lld/lld-14.0.0.9999.ebuild @@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="" -IUSE="test" +IUSE="debug test" RESTRICT="!test? ( test )" RDEPEND="~sys-devel/llvm-${PV}" @@ -48,6 +48,9 @@ src_unpack() { } src_configure() { + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 + use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" + local mycmakeargs=( -DBUILD_SHARED_LIBS=ON -DLLVM_INCLUDE_TESTS=$(usex test) -- cgit v1.2.3-65-gdbad