[tools] add ccache wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32075 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5cdcae8e9b
commit
0d08b76611
4 changed files with 20 additions and 2 deletions
8
rules.mk
8
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue