1 |
commit: fd6e329dc80a8deba2aaf7c65ab0192d00754d9e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 29 07:54:38 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 29 07:55:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6e329d |
7 |
|
8 |
toolchain.eclass: add USE=zstd for gcc-10 |
9 |
|
10 |
gcc-10 added support for zstd compression algorithm for LTO |
11 |
streaming. |
12 |
|
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
eclass/toolchain.eclass | 9 +++++++++ |
16 |
1 file changed, 9 insertions(+) |
17 |
|
18 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
19 |
index beab4cfc681..62520ae92df 100644 |
20 |
--- a/eclass/toolchain.eclass |
21 |
+++ b/eclass/toolchain.eclass |
22 |
@@ -192,6 +192,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then |
23 |
IUSE+=" systemtap" TC_FEATURES+=(systemtap) |
24 |
tc_version_is_at_least 9.0 && IUSE+=" d" |
25 |
tc_version_is_at_least 9.1 && IUSE+=" lto" |
26 |
+ tc_version_is_at_least 10 && IUSE+=" zstd" TC_FEATURES+=(zstd) |
27 |
fi |
28 |
|
29 |
if tc_version_is_at_least 10; then |
30 |
@@ -259,6 +260,10 @@ if tc_has_feature systemtap ; then |
31 |
DEPEND+=" systemtap? ( dev-util/systemtap )" |
32 |
fi |
33 |
|
34 |
+if tc_has_feature zstd ; then |
35 |
+ DEPEND+=" zstd? ( app-arch/zstd )" |
36 |
+fi |
37 |
+ |
38 |
PDEPEND=">=sys-devel/gcc-config-1.7" |
39 |
|
40 |
#---->> S + SRC_URI essentials <<---- |
41 |
@@ -1273,6 +1278,10 @@ toolchain_src_configure() { |
42 |
) |
43 |
fi |
44 |
|
45 |
+ if in_iuse zstd ; then |
46 |
+ confgcc+=( $(use_with zstd) ) |
47 |
+ fi |
48 |
+ |
49 |
# newer gcc's come with libquadmath, but only fortran uses |
50 |
# it, so auto punt it when we don't care |
51 |
if tc_version_is_at_least 4.6 && ! is_fortran ; then |