diff options
author | Andrew Tridgell <tridge@samba.org> | 2014-12-04 08:10:34 +1100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-02 12:01:38 +0100 |
commit | 0fcaccc406c303e18a4233af16566e944fa87b76 (patch) | |
tree | 32d4bbc5f467de6277c4498daf88e9fca88a0b91 | |
parent | 3c36467c0d5572431a09ae50013328a4693ee070 (diff) | |
download | px4-nuttx-0fcaccc406c303e18a4233af16566e944fa87b76.tar.gz px4-nuttx-0fcaccc406c303e18a4233af16566e944fa87b76.tar.bz2 px4-nuttx-0fcaccc406c303e18a4233af16566e944fa87b76.zip |
build: make it easier to use ccache for faster build on windows
-rw-r--r-- | nuttx/tools/Config.mk | 6 |
1 files changed, 4 insertions, 2 deletions
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 |