[Libreoffice-commits] core.git: solenv/gbuild

Thorsten Behrens (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 8 10:54:46 UTC 2019


 solenv/gbuild/gbuild.help.txt          |    3 +++
 solenv/gbuild/platform/com_GCC_defs.mk |    2 ++
 2 files changed, 5 insertions(+)

New commits:
commit 13b52f50e52d226c935dcb94fac641c59a77f13f
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Sun Dec 8 02:26:55 2019 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Sun Dec 8 11:54:00 2019 +0100

    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 at CIB.de>

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
 


More information about the Libreoffice-commits mailing list