From 19a88d46406e70456dfad8ea9c286efeddc7c777 Mon Sep 17 00:00:00 2001 From: Behnam Moh <58621210+ibehnam@users.noreply.github.com> Date: Sat, 11 May 2024 19:52:30 -0400 Subject: [PATCH] Fixed the issue where some terminals wouldn't show the message colors --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4ea304706..0a101f4b5 100644 --- a/Makefile +++ b/Makefile @@ -146,10 +146,10 @@ ifndef LLAMA_NO_CCACHE CCACHE := $(shell which ccache) ifdef CCACHE export CCACHE_SLOPPINESS = time_macros -RED=\033[0;31m -GREEN=\033[0;32m -YELLOW=\033[0;33m -RESET=\033[0m +RED := $(shell tput setaf 1) +GREEN := $(shell tput setaf 2) +YELLOW := $(shell tput setaf 3) +RESET := $(shell tput sgr0) $(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)