summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander F. Rødseth <52813+xyproto@users.noreply.github.com>2020-02-27 11:44:29 +0100
committerGitHub <noreply@github.com>2020-02-27 11:44:29 +0100
commitcdb58cdfd2976bae55218eda2a10c355f2a1693a (patch)
tree18911915a01533d4426ce27097ee90202b1b78c1 /Makefile
parent4997dcde06ca91718f775ffb002d3c459ab23679 (diff)
downloadserenity-cdb58cdfd2976bae55218eda2a10c355f2a1693a.zip
Build: Use ccache if it's available (#1315)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fa134665b8..f59dd7517d 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ SUBDIRS += \
Games \
Demos
+ifneq (, $(shell which ccache))
+ export PRE_CXX=ccache
+endif
+
include Makefile.subdir
all: subdirs