From 3bc8f2b1d5c6c296d3e03feebe6f08b9f82a180f Mon Sep 17 00:00:00 2001 From: Behnam Moh <58621210+ibehnam@users.noreply.github.com> Date: Sat, 11 May 2024 19:45:20 -0400 Subject: [PATCH] Better ccache guide in Makefile Added instructions on how to install ccache and how to disable it (for certain commits, it was necessary). --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3fa56d13a..4ea304706 100644 --- a/Makefile +++ b/Makefile @@ -146,11 +146,15 @@ ifndef LLAMA_NO_CCACHE CCACHE := $(shell which ccache) ifdef CCACHE export CCACHE_SLOPPINESS = time_macros -$(info I ccache found, compilation results will be cached. Disable with LLAMA_NO_CCACHE.) +RED=\033[0;31m +GREEN=\033[0;32m +YELLOW=\033[0;33m +RESET=\033[0m +$(info $(GREEN)I ccache found, compilation results will be cached. Disable with LLAMA_NO_CCACHE: `make clean && time make LLAMA_NO_CCACHE=1`$(RESET)) CC := $(CCACHE) $(CC) CXX := $(CCACHE) $(CXX) else -$(info I ccache not found. Consider installing it for faster compilation.) +$(info $(YELLOW)I ccache not found. Consider installing it for faster compilation. More info: https://github.com/ccache/ccache$(RESET)) endif # CCACHE endif # LLAMA_NO_CCACHE