commit:     e2718633f1d0b9ab11267fe55051b081064f1ae2
Author:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 16:49:12 2019 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Sun May  5 16:49:12 2019 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=e2718633

eclass: sync toolchain.eclass

Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>

 eclass/toolchain.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a3c901d..970d2c8 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -167,11 +167,13 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
                IUSE+=" graphite +sanitize" TC_FEATURES+=(graphite)
        tc_version_is_between 4.9 8 && IUSE+=" cilk"
        tc_version_is_at_least 4.9 && IUSE+=" +vtv"
-       tc_version_is_at_least 5.0 && IUSE+=" jit mpx"
+       tc_version_is_at_least 5.0 && IUSE+=" jit"
+       tc_version_is_between 5.0 9 && IUSE+=" mpx"
        tc_version_is_at_least 6.0 && IUSE+=" +pie +ssp +pch"
        # systemtap is a gentoo-specific switch: bug #654748
        tc_version_is_at_least 8.0 &&
                IUSE+=" systemtap" TC_FEATURES+=(systemtap)
+       tc_version_is_at_least 9.0 && IUSE+=" d"
 fi
 
 SLOT="${GCC_CONFIG_VER}"
@@ -2397,6 +2399,10 @@ is_go() {
 
 is_jit() {
        gcc-lang-supported jit || return 1
+       # cross-compiler does not really support jit as it has
+       # to generate code for a target. On target like avr
+       # libgcclit.so can't link at all: bug #594572
+       is_crosscompile && return 1
        use_if_iuse jit
 }
 

Reply via email to