From 1f52e64ae6b3876746bbd6339a6282f5f3ab5818 Mon Sep 17 00:00:00 2001 From: Aseda Aboagye Date: Wed, 25 Jan 2017 17:31:00 -0800 Subject: [PATCH] Makefile.rules: Clean ccache cache for 'clobber'. In the chroot, we use ccache to speed up compilation. However, it's possible for this cache to become corrupt which could lead to slower builds. In order to keep things fresh, 'make clobber' should clean up that ccache cache as well. This commit makes it so. Note, this is NOT *clearing* the cache entirely. BUG=chromium:681961 BRANCH=None TEST=make clobber; verify that ccache is cleaned. Change-Id: I8ccd7df4858c445485ed740843f3126af0abd33a Signed-off-by: Aseda Aboagye Reviewed-on: https://chromium-review.googlesource.com/433108 Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye Reviewed-by: Randall Spangler Reviewed-by: Shawn N --- Makefile.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index ec7e379616..b9364d1b56 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -419,6 +419,9 @@ clean: .PHONY: clobber clobber: -rm -rf build TAGS cscope.files cscope.out +ifneq ($(CCACHE),) + $(CCACHE) -c +endif .PHONY: help help: