summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-06-06 13:27:11 +0000
committerJohn Crispin <john@openwrt.org>2012-06-06 13:27:11 +0000
commita53b084e497a9f1629a2caada833ebe14a6838b7 (patch)
treeb3c7d810e91ef20fedfcb2e87027309371c7c21d /rules.mk
parent84a8853430779dd7ac93682654f008fe3f7eebd7 (diff)
downloadopenwrt-a53b084e497a9f1629a2caada833ebe14a6838b7.tar.gz
openwrt-a53b084e497a9f1629a2caada833ebe14a6838b7.tar.bz2
openwrt-a53b084e497a9f1629a2caada833ebe14a6838b7.zip
add ccache wrapper
SVN-Revision: 32075
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/rules.mk b/rules.mk
index f6e748c429..73a015e7a0 100644
--- a/rules.mk
+++ b/rules.mk
@@ -188,8 +188,12 @@ INSTALL_DATA:=install -m0644
INSTALL_CONF:=install -m0600
ifneq ($(CONFIG_CCACHE),)
- TARGET_CC:= ccache $(TARGET_CC)
- TARGET_CXX:= ccache $(TARGET_CXX)
+ TARGET_CC_NOCACHE:=$(TARGET_CC)
+ TARGET_CXX_NOCACHE:=$(TARGET_CXX)
+ export TARGET_CC_NOCACHE
+ export TARGET_CXX_NOCACHE
+ TARGET_CC:= ccache_cc
+ TARGET_CXX:= ccache_cxx
HOSTCC:= ccache $(HOSTCC)
endif