diff options
author | Sam James <sam@gentoo.org> | 2023-04-18 10:45:34 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-18 10:46:00 +0100 |
commit | 70f21b8bd7fd130067ab5d4798371ae0ef7c6ea6 (patch) | |
tree | bd82482d5448ed1fff29357b93fd041e034764e4 /eclass | |
parent | app-text/highlight: enable lua5-4, luajit (diff) | |
download | gentoo-70f21b8bd7fd130067ab5d4798371ae0ef7c6ea6.tar.gz gentoo-70f21b8bd7fd130067ab5d4798371ae0ef7c6ea6.tar.bz2 gentoo-70f21b8bd7fd130067ab5d4798371ae0ef7c6ea6.zip |
toolchain.eclass: wire up modula-2 frontend support for GCC 13; disable Rust for 13
- Wire up modula-2 frontend support for GCC 13 as USE=modula2
- Drop Rust for GCC 13, upstream are going to make it fatal for configure
for 13.1, but may revisit for 13.2 (not sure how likely that is, though, it depends
on how much ends up backported). Rust will be available for GCC 14 though. We will
revisit if changes occur, of course.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 66cf8e88f9b2..ba83cad72cb2 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -280,7 +280,8 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then tc_version_is_at_least 12 && IUSE+=" ieee-long-double" tc_version_is_at_least 12.2.1_p20221203 ${PV} && IUSE+=" default-znow" tc_version_is_at_least 12.2.1_p20221203 ${PV} && IUSE+=" default-stack-clash-protection" - tc_version_is_at_least 13.0.0_pre20221211 ${PV} && IUSE+=" rust" + tc_version_is_at_least 13.0.0_pre20221218 ${PV} && IUSE+=" modula2" + tc_version_is_at_least 14.0.0_pre20230423 ${PV} && IUSE+=" rust" fi if tc_version_is_at_least 10; then @@ -1045,6 +1046,7 @@ toolchain_src_configure() { is_f77 && GCC_LANG+=",f77" is_f95 && GCC_LANG+=",f95" is_ada && GCC_LANG+=",ada" + is_modula2 && GCC_LANG+=",m2" is_rust && GCC_LANG+=",rust" confgcc+=( --enable-languages=${GCC_LANG} ) @@ -2744,6 +2746,11 @@ is_objcxx() { _tc_use_if_iuse cxx && _tc_use_if_iuse objc++ } +is_modula2() { + gcc-lang-supported m2 || return 1 + _tc_use_if_iuse cxx && _tc_use_if_iuse modula2 +} + is_rust() { gcc-lang-supported rust || return 1 _tc_use_if_iuse rust |