build: enable ccache if installed for all builds

This commit is contained in:
Andrew Tridgell 2014-07-07 09:53:31 +10:00
parent 848b563fc3
commit 3475f39daf
1 changed files with 5 additions and 2 deletions

View File

@ -64,8 +64,11 @@ BBONE_LD := arm-linux-gnueabihf-g++-4.7
BBONE_GDB := gdb
BBONE_OBJCOPY := objcopy
CXX = $($(TOOLCHAIN)_CXX)
CC = $($(TOOLCHAIN)_CC)
# enable ccache if installed
CCACHE := $(call FIND_TOOL,ccache)
CXX = $(CCACHE) $($(TOOLCHAIN)_CXX)
CC = $(CCACHE) $($(TOOLCHAIN)_CC)
AS = $($(TOOLCHAIN)_AS)
AR = $($(TOOLCHAIN)_AR)
LD = $($(TOOLCHAIN)_LD)