From 932b83e6b17f61828455ae8e92c1fcf57b5e4ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Taine?= Date: Wed, 25 Jun 2014 23:54:19 +0200 Subject: [PATCH] Add colored GCC output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: BenoƮt Taine --- colors.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/colors.mk b/colors.mk index 7c00b36..e341942 100644 --- a/colors.mk +++ b/colors.mk @@ -10,6 +10,7 @@ COLOR_NORMAL = `$(TPUT) sgr0` COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3` COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2` COLOR_BRACKET = `$(TPUT) setaf 4` +CC += -fdiagnostics-color=always define colorecho @echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL) endef