summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-09 06:59:45 +0000
committerMike Frysinger <vapier@gentoo.org>2009-01-09 06:59:45 +0000
commit5c825f4707ed4b3318e1ee86e1c59c4f6f25e002 (patch)
tree58b194b0d075140012f3fe6e308bc780c1f9762d /eclass/multilib.eclass
parentRemove old (diff)
downloadgentoo-2-5c825f4707ed4b3318e1ee86e1c59c4f6f25e002.tar.gz
gentoo-2-5c825f4707ed4b3318e1ee86e1c59c4f6f25e002.tar.bz2
gentoo-2-5c825f4707ed4b3318e1ee86e1c59c4f6f25e002.zip
disable ccache when selecting a multilib other than the default #196243
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass14
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.