summaryrefslogtreecommitdiff
path: root/tmk_core/rules.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-21 14:39:13 +0100
committerGitHub <noreply@github.com>2021-10-21 14:39:13 +0100
commitb36e0c66581b5ec0e3aff5212857e9694115e66c (patch)
tree9f5b4e7b2a294353598e123a659897cebe83a23d /tmk_core/rules.mk
parent1816006121de991581d50d0bc6b5a653e2b3ccd2 (diff)
Move USE_CCACHE logic to common location (#14899)
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r--tmk_core/rules.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 5a629d1eb0..4c547cfd24 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -69,8 +69,11 @@ CSTANDARD = -std=gnu99
#CXXDEFS += -D__STDC_CONSTANT_MACROS
#CXXDEFS +=
-
-
+# Speed up recompilations by opt-in usage of ccache
+USE_CCACHE ?= yes
+ifneq ($(USE_CCACHE),no)
+ CC_PREFIX ?= ccache
+endif
#---------------- Compiler Options C ----------------
# -g*: generate debugging information