aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-07-28 21:06:59 +0000
committerJohn Crispin <john@openwrt.org>2012-07-28 21:06:59 +0000
commit370894e594af0547bf788b509c6ae40507101283 (patch)
tree23de9f35394e249e2ae1b2c157ee10cd77cb2cf1 /rules.mk
parent101766fb0060f523a45f8500e2047d8e7a9d36f7 (diff)
downloadupstream-370894e594af0547bf788b509c6ae40507101283.tar.gz
upstream-370894e594af0547bf788b509c6ae40507101283.tar.bz2
upstream-370894e594af0547bf788b509c6ae40507101283.zip
fix up scons vs ccache
SVN-Revision: 32902
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/rules.mk b/rules.mk
index 412615c320..114b16ce3a 100644
--- a/rules.mk
+++ b/rules.mk
@@ -185,13 +185,14 @@ INSTALL_DIR:=install -d -m0755
INSTALL_DATA:=install -m0644
INSTALL_CONF:=install -m0600
+TARGET_CC_NOCACHE:=$(TARGET_CC)
+TARGET_CXX_NOCACHE:=$(TARGET_CXX)
+HOSTCC_NOCACHE:=$(HOSTCC)
+export TARGET_CC_NOCACHE
+export TARGET_CXX_NOCACHE
+export HOSTCC_NOCACHE
+
ifneq ($(CONFIG_CCACHE),)
- TARGET_CC_NOCACHE:=$(TARGET_CC)
- TARGET_CXX_NOCACHE:=$(TARGET_CXX)
- HOSTCC_NOCACHE:=$(HOSTCC)
- export TARGET_CC_NOCACHE
- export TARGET_CXX_NOCACHE
- export HOSTCC_NOCACHE
TARGET_CC:= ccache_cc
TARGET_CXX:= ccache_cxx
HOSTCC:= ccache $(HOSTCC)