Commit 18c629cf authored by Philip Withnall's avatar Philip Withnall

build: Enable colourised output from GCC

If GCC supports it, enable the -fdiagnostics-color=auto option, which adds
colour to warnings and errors outputted by GCC. Enable this for both generated
and non-generated C code.

https://bugzilla.gnome.org/show_bug.cgi?id=710869
parent ec466f40
......@@ -504,6 +504,10 @@ FOLKS_ADD_WARNING([ERROR_CFLAGS], [old-style-declaration])
FOLKS_ADD_WARNING([ERROR_CFLAGS], [old-style-definition])
FOLKS_ADD_WARNING([ERROR_CFLAGS], [strict-prototypes])
# Enable colourised compiler output.
AS_COMPILER_FLAG([-fdiagnostics-color=auto],
[ERROR_CFLAGS="$ERROR_CFLAGS -fdiagnostics-color=auto"])
AS_COMPILER_FLAG([-Wall], [C_ERROR_CFLAGS="-Wall"], [C_ERROR_CFLAGS=""])
AS_COMPILER_FLAG([-Werror], [werror=yes], [werror=no])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment