1 |
commit: 21671e80e077a0924803ba6a76bd4e4a5662b848 |
2 |
Author: Dave Hughes <davidhughes205 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 27 19:35:26 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 27 19:36:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21671e80 |
7 |
|
8 |
toolchain.eclass: add USE=cet support |
9 |
|
10 |
See: https://github.com/gentoo/gentoo/pull/21588 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Dave Hughes <davidhughes205 <AT> gmail.com> |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
eclass/toolchain.eclass | 5 +++++ |
16 |
1 file changed, 5 insertions(+) |
17 |
|
18 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
19 |
index 720b227b9c44..d80873fcd2e7 100644 |
20 |
--- a/eclass/toolchain.eclass |
21 |
+++ b/eclass/toolchain.eclass |
22 |
@@ -180,6 +180,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+=" cet" |
27 |
tc_version_is_at_least 10 && IUSE+=" zstd" TC_FEATURES+=(zstd) |
28 |
tc_version_is_at_least 11 && IUSE+=" valgrind" TC_FEATURES+=(valgrind) |
29 |
tc_version_is_at_least 11 && IUSE+=" custom-cflags" |
30 |
@@ -1173,6 +1174,10 @@ toolchain_src_configure() { |
31 |
confgcc+=( --disable-libada ) |
32 |
fi |
33 |
|
34 |
+ if in_iuse cet ; then |
35 |
+ confgcc+=( $(use_enable cet) ) |
36 |
+ fi |
37 |
+ |
38 |
if in_iuse cilk ; then |
39 |
confgcc+=( $(use_enable cilk libcilkrts) ) |
40 |
fi |