commit: 21671e80e077a0924803ba6a76bd4e4a5662b848 Author: Dave Hughes <davidhughes205 <AT> gmail <DOT> com> AuthorDate: Sat Nov 27 19:35:26 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Nov 27 19:36:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21671e80
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 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 5 +++++ 1 file changed, 5 insertions(+) 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
