summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-08 02:26:55 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-08 11:54:00 +0100
commit13b52f50e52d226c935dcb94fac641c59a77f13f (patch)
tree25b85eb7f8d2c1ae6ad1e331c2014cbf67d91fba /solenv
parentc4d3d5a753adc005c34aee3f7f81df4c36d3e261 (diff)
gbuild: color gcc output if possible
Enable gcc to color its diagnostics output - depending on distro build flags, might need GCC_COLORS defined in the environment. See also gbuild.help.txt. Change-Id: Ibeaaaadcaccc2847c0105c266b977fee6f4e9960 Reviewed-on: https://gerrit.libreoffice.org/84705 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/gbuild.help.txt3
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk2
2 files changed, 5 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.help.txt b/solenv/gbuild/gbuild.help.txt
index 665feb578fb1..3b0e00474961 100644
--- a/solenv/gbuild/gbuild.help.txt
+++ b/solenv/gbuild/gbuild.help.txt
@@ -147,3 +147,6 @@ INTERACTIVE VARIABLES:
debugrun. Double quotes will be automatically escaped.
gb_SUPPRESS_TESTS Do not run tests (but still build them, when requested
by the given targets).
+ GCC_COLORS Colorize gcc diagnostics output. See
+ https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html
+ for details & syntax. Or export that setting in your .bash_profile.
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index ebcd94553155..12e08ecdb95a 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -67,6 +67,7 @@ gb_CFLAGS_COMMON := \
-fno-common \
-pipe \
-fstack-protector-strong \
+ -fdiagnostics-color=auto \
gb_CXXFLAGS_COMMON := \
-Wall \
@@ -82,6 +83,7 @@ gb_CXXFLAGS_COMMON := \
-fno-common \
-pipe \
-fstack-protector-strong \
+ -fdiagnostics-color=auto \
gb_CXXFLAGS_DISABLE_WARNINGS = -w