summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDave Hughes <davidhughes205@gmail.com>2021-11-27 19:35:26 +0000
committerSam James <sam@gentoo.org>2021-11-27 19:36:27 +0000
commit21671e80e077a0924803ba6a76bd4e4a5662b848 (patch)
tree8dca9d70f6a4617cf9f353b575a76c3f72830f0b /eclass
parentdev-cpp/catch: update live ebuild (diff)
downloadgentoo-21671e80e077a0924803ba6a76bd4e4a5662b848.tar.gz
gentoo-21671e80e077a0924803ba6a76bd4e4a5662b848.tar.bz2
gentoo-21671e80e077a0924803ba6a76bd4e4a5662b848.zip
toolchain.eclass: add USE=cet support
See: https://github.com/gentoo/gentoo/pull/21588 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Dave Hughes <davidhughes205@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 720b227b9c44..d80873fcd2e7 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -180,6 +180,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+=" cet"
tc_version_is_at_least 10 && IUSE+=" zstd" TC_FEATURES+=(zstd)
tc_version_is_at_least 11 && IUSE+=" valgrind" TC_FEATURES+=(valgrind)
tc_version_is_at_least 11 && IUSE+=" custom-cflags"
@@ -1173,6 +1174,10 @@ toolchain_src_configure() {
confgcc+=( --disable-libada )
fi
+ if in_iuse cet ; then
+ confgcc+=( $(use_enable cet) )
+ fi
+
if in_iuse cilk ; then
confgcc+=( $(use_enable cilk libcilkrts) )
fi