1 |
commit: 6f4641f7b41d6876c22394a4b6da62ac69448452 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 25 20:13:48 2016 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 25 20:13:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=6f4641f7 |
7 |
|
8 |
mozcoreconf-v4.eclass: allow -O4 when custom-optimization flag is set |
9 |
|
10 |
End-users want to experiment with clang and -O4, so let them. |
11 |
|
12 |
Bug: http://bugs.gentoo.org/462488 |
13 |
|
14 |
eclass/mozcoreconf-v4.eclass | 2 ++ |
15 |
1 file changed, 2 insertions(+) |
16 |
|
17 |
diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass |
18 |
index 3a43905..b411326 100644 |
19 |
--- a/eclass/mozcoreconf-v4.eclass |
20 |
+++ b/eclass/mozcoreconf-v4.eclass |
21 |
@@ -167,6 +167,8 @@ mozconfig_init() { |
22 |
mozconfig_annotate "from CFLAGS" --enable-optimize=-O0 |
23 |
elif [[ ${ARCH} == ppc ]] && has_version '>=sys-libs/glibc-2.8'; then |
24 |
mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" --enable-optimize=-O1 |
25 |
+ elif is-flag -O4; then |
26 |
+ mozconfig_annotate "from CFLAGS" --enable-optimize=-O4 |
27 |
elif is-flag -O3; then |
28 |
mozconfig_annotate "from CFLAGS" --enable-optimize=-O3 |
29 |
elif is-flag -O1; then |