diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2016-07-25 14:50:27 -0400 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2016-07-25 14:53:43 -0400 |
commit | e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f (patch) | |
tree | cb7706853afb3e2278edb811d42e0ee1188b1887 /eclass | |
parent | sci-mathematics/fann: multilib support (diff) | |
download | gentoo-e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f.tar.gz gentoo-e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f.tar.bz2 gentoo-e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f.zip |
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
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mozcoreconf-v4.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass index 3a43905ff321..b411326cd3d6 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 |