commit: ce1aa5d8fdb60dcd1c08cc1d35cf77fc2998959b Author: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> AuthorDate: Wed Jan 24 18:21:55 2024 +0000 Commit: Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me> CommitDate: Wed Jan 24 18:38:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=ce1aa5d8
dev-lang/ldc2: pass -fno-strict-aliasing Bug: https://bugs.gentoo.org/show_bug.cgi?id=922590 Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me> dev-lang/ldc2/{ldc2-1.36.0.ebuild => ldc2-1.36.0-r1.ebuild} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-lang/ldc2/ldc2-1.36.0.ebuild b/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild similarity index 91% rename from dev-lang/ldc2/ldc2-1.36.0.ebuild rename to dev-lang/ldc2/ldc2-1.36.0-r1.ebuild index f6837c0..bc995b9 100644 --- a/dev-lang/ldc2/ldc2-1.36.0.ebuild +++ b/dev-lang/ldc2/ldc2-1.36.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit multilib-build cmake llvm +inherit flag-o-matic multilib-build cmake llvm MY_PV="${PV//_/-}" MY_P="ldc-${MY_PV}-src" @@ -18,7 +18,7 @@ SLOT="$(ver_cut 1-2)/$(ver_cut 3)" IUSE="static-libs" -# Upstream supports LLVM 11.0 through 16.0. +# Upstream supports LLVM 11.0 through 17.0. DEPEND=" || ( sys-devel/llvm:17 @@ -53,6 +53,8 @@ d_src_configure() { # We disable assertions so we have to apply the same workaround as for # sys-devel/llvm: add -DNDEBUG to CPPFLAGS. local CPPFLAGS="${CPPFLAGS} -DNDEBUG" + # https://bugs.gentoo.org/show_bug.cgi?id=922590 + append-flags -fno-strict-aliasing local mycmakeargs=( -DD_VERSION=2 -DCMAKE_INSTALL_PREFIX=/usr/lib/ldc2/$(ver_cut 1-2)
