diff options
author | Anton Staaf <robotboy@chromium.org> | 2016-01-13 14:18:23 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-19 14:24:45 -0800 |
commit | 7b89bb029edfb74e79cc76acae4cf4690518d84c (patch) | |
tree | 9b3b6b18f6280e3f9c84ab68119617746a3d02bd | |
parent | 6e4e1ccc8217ac8b318b885dae78b3c1996ca71e (diff) | |
download | chrome-ec-7b89bb029edfb74e79cc76acae4cf4690518d84c.tar.gz |
Build: Use ccache to speed up builds
This almost halves buildall times on my machine. Aseda reminded me
of ccache.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I819eb1e9558a65fef5bd188c487115609da8ab92
Reviewed-on: https://chromium-review.googlesource.com/321911
Commit-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | Makefile.toolchain | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index f01572634b..a204df9e25 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -9,16 +9,16 @@ # Toolchain configuration HOST_CROSS_COMPILE ?= x86_64-pc-linux-gnu- -CC=$(CROSS_COMPILE)gcc -CPP=$(CROSS_COMPILE)cpp +CC=ccache $(CROSS_COMPILE)gcc +CPP=ccache $(CROSS_COMPILE)cpp LD=$(CROSS_COMPILE)ld NM=$(CROSS_COMPILE)nm OBJCOPY=$(CROSS_COMPILE)objcopy OBJDUMP=$(CROSS_COMPILE)objdump PKG_CONFIG?=pkg-config -BUILDCC?=gcc -HOSTCC?=$(HOST_CROSS_COMPILE)gcc -HOSTCXX?=$(HOST_CROSS_COMPILE)g++ +BUILDCC?=ccache gcc +HOSTCC?=ccache $(HOST_CROSS_COMPILE)gcc +HOSTCXX?=ccache $(HOST_CROSS_COMPILE)g++ C_WARN = -Wstrict-prototypes -Wdeclaration-after-statement -Wno-pointer-sign COMMON_WARN = -Wall -Werror -Wundef -Wno-trigraphs -fno-strict-aliasing \ |