summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-04-27 20:42:02 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-04-27 20:52:08 +0100
commit5f7c4162b1bf2e3b2123cbe4189f675eebcd1a1d (patch)
tree3c4531c7aacba4f20c0cfec80026cd6e25997d29 /eclass/toolchain.eclass
parentprofiles/arm64/*.mask: remove ruby masks (diff)
downloadgentoo-5f7c4162b1bf2e3b2123cbe4189f675eebcd1a1d.tar.gz
gentoo-5f7c4162b1bf2e3b2123cbe4189f675eebcd1a1d.tar.bz2
gentoo-5f7c4162b1bf2e3b2123cbe4189f675eebcd1a1d.zip
toolchain.eclass: disable USE=jit for cross-compilers, bug #594572
USE=jit is not very useful for a cross-compiler as it assumes running generated code on the host. At least avr-* targets can't build libgccjit.so. The change disables IUSE=jit for cross-compilers only. Cross-built compilers could still get libgccjit.so built for a target. Reported-by: Maciej Piechotka Reported-by: Marco Sirabella Closes: https://bugs.gentoo.org/594572 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index be94db869d52..f5daa73233db 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2394,6 +2394,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
}