mozcoreconf-v4.eclass: allow -O4 when custom-optimization flag is set
authorIan Stakenvicius <axs@gentoo.org>
Mon, 25 Jul 2016 18:50:27 +0000 (14:50 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Mon, 25 Jul 2016 18:53:43 +0000 (14:53 -0400)
End-users want to experiment with clang and -O4, so let them.

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

eclass/mozcoreconf-v4.eclass

index 3a43905ff3216b28adf45d575a8a048c602378e1..b411326cd3d6cf6cc74379f038bc9a92220fa107 100644 (file)
@@ -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