commit: 97344eb19de03e825c7b2b099479eb1e63b96b1b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Oct 2 11:47:50 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Oct 3 06:04:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97344eb1
sys-devel/lld: Ensure NDEBUG correctly Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-devel/lld/lld-13.0.0.9999.ebuild | 5 ++++- sys-devel/lld/lld-13.0.0.ebuild | 5 ++++- sys-devel/lld/lld-14.0.0.9999.ebuild | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sys-devel/lld/lld-13.0.0.9999.ebuild b/sys-devel/lld/lld-13.0.0.9999.ebuild index 68762b0a03c..8bcce2b3022 100644 --- a/sys-devel/lld/lld-13.0.0.9999.ebuild +++ b/sys-devel/lld/lld-13.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) diff --git a/sys-devel/lld/lld-13.0.0.ebuild b/sys-devel/lld/lld-13.0.0.ebuild index 28e940174a8..26c283fd648 100644 --- a/sys-devel/lld/lld-13.0.0.ebuild +++ b/sys-devel/lld/lld-13.0.0.ebuild @@ -12,7 +12,7 @@ HOMEPAGE="https://llvm.org/" LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" -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) diff --git a/sys-devel/lld/lld-14.0.0.9999.ebuild b/sys-devel/lld/lld-14.0.0.9999.ebuild index 68762b0a03c..8bcce2b3022 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)
