Fixed the issue where some terminals wouldn't show the message colors

This commit is contained in:
Behnam Moh 2024-05-11 19:52:30 -04:00 committed by GitHub
parent 3bc8f2b1d5
commit 19a88d4640
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,10 +146,10 @@ ifndef LLAMA_NO_CCACHE
CCACHE := $(shell which ccache) CCACHE := $(shell which ccache)
ifdef CCACHE ifdef CCACHE
export CCACHE_SLOPPINESS = time_macros export CCACHE_SLOPPINESS = time_macros
RED=\033[0;31m RED := $(shell tput setaf 1)
GREEN=\033[0;32m GREEN := $(shell tput setaf 2)
YELLOW=\033[0;33m YELLOW := $(shell tput setaf 3)
RESET=\033[0m 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)) $(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) CC := $(CCACHE) $(CC)
CXX := $(CCACHE) $(CXX) CXX := $(CCACHE) $(CXX)