diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-01-25 17:31:00 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-27 16:44:03 -0800 |
commit | 1f52e64ae6b3876746bbd6339a6282f5f3ab5818 (patch) | |
tree | 3a7c75672ed6475fa54d119a8e564d593ea0969f /Makefile.rules | |
parent | bb55470b0e0a2dd085a26cb1fbdb2428f3cfea4f (diff) | |
download | chrome-ec-1f52e64ae6b3876746bbd6339a6282f5f3ab5818.tar.gz |
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 <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/433108
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 3 |
1 files changed, 3 insertions, 0 deletions
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: |