From 0fcaccc406c303e18a4233af16566e944fa87b76 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 Dec 2014 08:10:34 +1100 Subject: build: make it easier to use ccache for faster build on windows --- nuttx/tools/Config.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx') diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk index 9ac93e7d0..8c04eeb3a 100644 --- a/nuttx/tools/Config.mk +++ b/nuttx/tools/Config.mk @@ -111,10 +111,11 @@ endef # # CC - The command to invoke the C compiler # CFLAGS - Options to pass to the C compiler +# CCACHE - optional path to ccache define COMPILE @echo "CC: $1" - $(Q) $(CC) -c $(CFLAGS) $1 -o $2 + $(Q) $(CCACHE) $(CC) -c $(CFLAGS) $1 -o $2 endef # COMPILEXX - Default macro to compile one C++ file @@ -125,10 +126,11 @@ endef # # CXX - The command to invoke the C++ compiler # CXXFLAGS - Options to pass to the C++ compiler +# CCACHE - optional path to ccache define COMPILEXX @echo "CXX: $1" - $(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2 + $(Q) $(CCACHE) $(CXX) -c $(CXXFLAGS) $1 -o $2 endef # ASSEMBLE - Default macro to assemble one assembly language file -- cgit v1.2.3