summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-09-23 02:51:42 +0200
committerThomas Deutschmann <whissi@gentoo.org>2018-09-23 03:30:35 +0200
commit59c9e92b639712d4c37ece540582db83afdc8608 (patch)
treeb1a886e07f341d6c18656c68f074c8f58c7b092a /www-client/firefox/metadata.xml
parentwww-client/firefox: fix punctuation in elog (diff)
downloadgentoo-59c9e92b639712d4c37ece540582db83afdc8608.tar.gz
gentoo-59c9e92b639712d4c37ece540582db83afdc8608.tar.bz2
gentoo-59c9e92b639712d4c37ece540582db83afdc8608.zip
www-client/firefox: add explicit Clang and LTO support
- Set USE=lto to enable Link Time Optimization (LTO). It works with either GCC or Clang. - When you want to use Clang to build Firefox you now have to set USE=clang. If not set, GCC will be used. - Using Clang will require lld linker provided by sys-devel/lld. Closes: https://bugs.gentoo.org/666580 Closes: https://bugs.gentoo.org/663846 Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'www-client/firefox/metadata.xml')
-rw-r--r--www-client/firefox/metadata.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/www-client/firefox/metadata.xml b/www-client/firefox/metadata.xml
index b0018ba73250..35cdb0ef1ea6 100644
--- a/www-client/firefox/metadata.xml
+++ b/www-client/firefox/metadata.xml
@@ -8,6 +8,7 @@
<use>
<flag name="bindist">Disable official Firefox branding (icons, name) which
are not binary-redistributable according to upstream.</flag>
+ <flag name="clang">Use Clang compiler instead of GCC</flag>
<flag name="custom-optimization">Build with user-specified compiler optimizations
(-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag>
<flag name="eme-free">Disable EME (DRM plugin) cabability at build time</flag>
@@ -16,6 +17,8 @@
downloaded and kept up-to-date in user profiles</flag>
<flag name="hwaccel">Force-enable hardware-accelerated rendering (Mozilla bug 594876)</flag>
<flag name="jemalloc">Enable or disable jemalloc</flag>
+ <flag name="lto">Enable Link Time Optimization (LTO). Requires Gold linker when using GCC
+ or LDD linker when using Clang</flag>
<flag name="pgo">Add support for profile-guided optimization using gcc-4.5,
for faster binaries. This option will double the compile time.</flag>
<flag name="rust">Enable support for using rust compiler (experimental)</flag>