diff options
author | John Crispin <blogic@openwrt.org> | 2012-06-06 13:27:11 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-06-06 13:27:11 +0000 |
commit | e84fbcf5bc52dbeb2f8459d7ce25b61e6ce90fe5 (patch) | |
tree | deed598b50e65f1e706caa3c581fd80570626fdf /rules.mk | |
parent | 3cb13b3da5f6c43e256c764e4dc1964a1d312241 (diff) | |
download | upstream-e84fbcf5bc52dbeb2f8459d7ce25b61e6ce90fe5.tar.gz upstream-e84fbcf5bc52dbeb2f8459d7ce25b61e6ce90fe5.tar.bz2 upstream-e84fbcf5bc52dbeb2f8459d7ce25b61e6ce90fe5.zip |
[tools] add ccache wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32075 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 |