commit:     e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f
Author:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 25 18:50:27 2016 +0000
Commit:     Ian Stakenvicius <axs <AT> gentoo <DOT> org>
CommitDate: Mon Jul 25 18:53:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ea70a9

mozcoreconf-v4.eclass: allow -O4 when custom-optimization flag is set

End-users want to experiment with clang and -O4, so let them.

Bug: http://bugs.gentoo.org/462488

 eclass/mozcoreconf-v4.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass
index 3a43905..b411326 100644
--- a/eclass/mozcoreconf-v4.eclass
+++ b/eclass/mozcoreconf-v4.eclass
@@ -167,6 +167,8 @@ mozconfig_init() {
                        mozconfig_annotate "from CFLAGS" --enable-optimize=-O0
                elif [[ ${ARCH} == ppc ]] && has_version 
'>=sys-libs/glibc-2.8'; then
                        mozconfig_annotate "more than -O1 segfaults on ppc with 
glibc-2.8" --enable-optimize=-O1
+               elif is-flag -O4; then
+                       mozconfig_annotate "from CFLAGS" --enable-optimize=-O4
                elif is-flag -O3; then
                        mozconfig_annotate "from CFLAGS" --enable-optimize=-O3
                elif is-flag -O1; then

Reply via email to