summaryrefslogtreecommitdiffstats
path: root/core/config.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-09-24 22:14:25 -0700
committerSteve Kondik <steve@cyngn.com>2015-11-07 05:45:17 -0800
commitb425f41d95796e9e013de536b200aa6324725e6d (patch)
tree9f61d974d3885f942748e5fa7f513b61aee8d0d3 /core/config.mk
parent8113a248b00bfa031f6f7f74f0df25723ef1b67b (diff)
downloadbuild-b425f41d95796e9e013de536b200aa6324725e6d.zip
build-b425f41d95796e9e013de536b200aa6324725e6d.tar.gz
build-b425f41d95796e9e013de536b200aa6324725e6d.tar.bz2
Enable color output from gcc and clang
Force gcc and clang to always output color diagnostics. Ninja will strip the ANSI color codes if it is not running in a terminal. Bug: 24273983 Change-Id: Ic9252549bfacf3bbb3f4b9d20f63010fc24ac21d
Diffstat (limited to 'core/config.mk')
-rw-r--r--core/config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/config.mk b/core/config.mk
index d1371f3..9344958 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -135,6 +135,10 @@ COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG
COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo -std=gnu++11
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
+# Force gcc to always output color diagnostics. Ninja will strip the ANSI
+# color codes if it is not running in a terminal.
+COMMON_GLOBAL_CFLAGS += -fdiagnostics-color
+
GLOBAL_CFLAGS_NO_OVERRIDE := \
-Werror=int-to-pointer-cast \
-Werror=pointer-to-int-cast \