diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-01-09 06:59:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-01-09 06:59:45 +0000 |
commit | 3c82a252e5dcd4851b1b1b222ec37028d618303a (patch) | |
tree | 62720bb37bf10378481019287343919ac06c3027 /eclass/multilib.eclass | |
parent | Remove old (diff) | |
download | historical-3c82a252e5dcd4851b1b1b222ec37028d618303a.tar.gz historical-3c82a252e5dcd4851b1b1b222ec37028d618303a.tar.bz2 historical-3c82a252e5dcd4851b1b1b222ec37028d618303a.zip |
disable ccache when selecting a multilib other than the default #196243
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r-- | eclass/multilib.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index ffee214da78c..96c73419a798 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.69 2008/11/28 09:20:26 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.70 2009/01/09 06:59:45 vapier Exp $ # @ECLASS: multilib.eclass # @MAINTAINER: @@ -651,6 +651,18 @@ multilib_env() { multilib_toolchain_setup() { export ABI=$1 + # disable ccache for non-native builds #196243. this is because how + # we cram ABI related CFLAGS behind the back of the gcc frontend with + # the gcc-config wrapper. + if [[ ${ABI} != ${DEFAULT_ABI} ]] ; then + : ${CCACHE_DISABLE:=multilib-disable} + else + if [[ ${CCACHE_DISABLE} == "multilib-disable" ]] ; then + unset CCACHE_DISABLE + fi + fi + export CCACHE_DISABLE + if has_version app-admin/eselect-compiler ; then # Binutils doesn't have wrappers for ld and as (yet). Eventually it # will, and all this can just be handled with CHOST. |