summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-04-15 00:34:11 +0200
committerMichał Górny <mgorny@gentoo.org>2017-04-15 00:38:53 +0200
commit4a072e71088b37888ae219b3aa0ae490938b9a5d (patch)
tree0aff5ca6d92aabbb94998a01ad756223e1cc4df5 /sys-devel
parentsys-devel/clang: Revert "Fix respecting USE=debug for asserts, #614844" (diff)
downloadgentoo-4a072e71088b37888ae219b3aa0ae490938b9a5d.tar.gz
gentoo-4a072e71088b37888ae219b3aa0ae490938b9a5d.tar.bz2
gentoo-4a072e71088b37888ae219b3aa0ae490938b9a5d.zip
sys-devel/llvm: Fix passing -DNDEBUG to build, #614844
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/llvm/llvm-4.0.0-r2.ebuild (renamed from sys-devel/llvm/llvm-4.0.0-r1.ebuild)2
-rw-r--r--sys-devel/llvm/llvm-9999.ebuild2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys-devel/llvm/llvm-4.0.0-r1.ebuild b/sys-devel/llvm/llvm-4.0.0-r2.ebuild
index db35674169dc..4e23b863f255 100644
--- a/sys-devel/llvm/llvm-4.0.0-r1.ebuild
+++ b/sys-devel/llvm/llvm-4.0.0-r2.ebuild
@@ -204,6 +204,8 @@ multilib_src_configure() {
)
fi
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
cmake-utils_src_configure
}
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 44153d7806ec..2d6aee824234 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -203,6 +203,8 @@ multilib_src_configure() {
)
fi
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
cmake-utils_src_configure
}