aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLevin Calado <levincalado@gmail.com>2015-06-13 22:08:11 +0800
committerMoyster <oysterized@gmail.com>2016-08-26 20:05:07 +0200
commit5b256d823a0e81bb36f8a0d90388d4b1f449931e (patch)
tree0f568ec453ab2123b0328197b84da9cc36d58077 /Makefile
parentb1f470ef8f6930d423c1be4920477ca2b0d5c908 (diff)
Makefile: use ccache
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2f92c04c1..5ea48c6e4 100644
--- a/Makefile
+++ b/Makefile
@@ -239,7 +239,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)
-HOSTCC = gcc
+HOSTCC = ccache gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
HOSTCXXFLAGS = -O2
@@ -326,7 +326,7 @@ include $(srctree)/scripts/Kbuild.include
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
-CC = $(CROSS_COMPILE)gcc
+CC = ccache $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm