make (gcc?) color output during build
Posted: Thu Feb 22, 2018 5:14 pm
I'm trying to give my build-process output some intelligibility by adding color to the output. With the underlying compiler being gcc, I thought all I would have to do is add some flags
To be sure I set the GCC_COLORS environment variable ( both in my environment (with export) and in the Makefile.
I even tried adding directly to the compiler variable
Am I missing a glaring step?
Code: Select all
CFLAGS += -fdiagnostics-color=always
CXXFLAGS += -fdiagnostics-color=always
CPPFLAGS += -fdiagnostics-color=always
Code: Select all
GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
Code: Select all
CC += -fdiagnostics-color=always