summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-02-29 07:54:38 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-29 07:55:57 +0000
commitfd6e329dc80a8deba2aaf7c65ab0192d00754d9e (patch)
tree7a540ed3bf81c7ed66532bd7b648ab4bb0e7a690 /eclass
parentdev-util/sccache: bump to 0.2.13 (diff)
downloadgentoo-fd6e329dc80a8deba2aaf7c65ab0192d00754d9e.tar.gz
gentoo-fd6e329dc80a8deba2aaf7c65ab0192d00754d9e.tar.bz2
gentoo-fd6e329dc80a8deba2aaf7c65ab0192d00754d9e.zip
toolchain.eclass: add USE=zstd for gcc-10
gcc-10 added support for zstd compression algorithm for LTO streaming. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index beab4cfc6810..62520ae92dff 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -192,6 +192,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
IUSE+=" systemtap" TC_FEATURES+=(systemtap)
tc_version_is_at_least 9.0 && IUSE+=" d"
tc_version_is_at_least 9.1 && IUSE+=" lto"
+ tc_version_is_at_least 10 && IUSE+=" zstd" TC_FEATURES+=(zstd)
fi
if tc_version_is_at_least 10; then
@@ -259,6 +260,10 @@ if tc_has_feature systemtap ; then
DEPEND+=" systemtap? ( dev-util/systemtap )"
fi
+if tc_has_feature zstd ; then
+ DEPEND+=" zstd? ( app-arch/zstd )"
+fi
+
PDEPEND=">=sys-devel/gcc-config-1.7"
#---->> S + SRC_URI essentials <<----
@@ -1273,6 +1278,10 @@ toolchain_src_configure() {
)
fi
+ if in_iuse zstd ; then
+ confgcc+=( $(use_with zstd) )
+ fi
+
# newer gcc's come with libquadmath, but only fortran uses
# it, so auto punt it when we don't care
if tc_version_is_at_least 4.6 && ! is_fortran ; then