diff options
author | John Crispin <john@openwrt.org> | 2012-06-06 13:27:11 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-06-06 13:27:11 +0000 |
commit | a53b084e497a9f1629a2caada833ebe14a6838b7 (patch) | |
tree | b3c7d810e91ef20fedfcb2e87027309371c7c21d /rules.mk | |
parent | 84a8853430779dd7ac93682654f008fe3f7eebd7 (diff) | |
download | upstream-a53b084e497a9f1629a2caada833ebe14a6838b7.tar.gz upstream-a53b084e497a9f1629a2caada833ebe14a6838b7.tar.bz2 upstream-a53b084e497a9f1629a2caada833ebe14a6838b7.zip |
add ccache wrapper
SVN-Revision: 32075
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |