From 3475f39daf3ef739cf5bb29c262d2ac7f9897b86 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Jul 2014 09:53:31 +1000 Subject: [PATCH] build: enable ccache if installed for all builds --- mk/find_tools.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mk/find_tools.mk b/mk/find_tools.mk index 2251dfbcb4..a1bfabe1c5 100644 --- a/mk/find_tools.mk +++ b/mk/find_tools.mk @@ -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)