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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 8 15:08:15 UTC 2019


 solenv/gbuild/platform/com_GCC_defs.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9ab2703d5c212746c961dcb238a4c3025d3a2587
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Dec 8 15:18:19 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Dec 8 16:07:31 2019 +0100

    Improve -fdiagnostics-color handling
    
    ...following up on 13b52f50e52d226c935dcb94fac641c59a77f13f "gbuild: color gcc
    output if possible".  Unconditional -fdiagnostics-color=auto overrode the
    -fdiagnostics-color=always I specify in CC/CXX to mitigate using the GNU Make -O
    option.  Forcing -fdiagnostics-color=always iff gb_COLOR is set should give the
    desired results in all cases (colored output to a terminal when calling make
    without -O but using a GCC that defaults to -fdiagnostics-color=never, as well
    as colored output to a terminal when calling make with -O).
    
    Change-Id: I629bad4bceb15af3ed43f42038825bd1481b33dd
    Reviewed-on: https://gerrit.libreoffice.org/84710
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 12e08ecdb95a..13c770baa79f 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -67,7 +67,7 @@ gb_CFLAGS_COMMON := \
 	-fno-common \
 	-pipe \
 	-fstack-protector-strong \
-	-fdiagnostics-color=auto \
+	$(if $(gb_COLOR),-fdiagnostics-color=always) \
 
 gb_CXXFLAGS_COMMON := \
 	-Wall \
@@ -83,7 +83,7 @@ gb_CXXFLAGS_COMMON := \
 	-fno-common \
 	-pipe \
 	-fstack-protector-strong \
-	-fdiagnostics-color=auto \
+	$(if $(gb_COLOR),-fdiagnostics-color=always) \
 
 gb_CXXFLAGS_DISABLE_WARNINGS = -w
 


More information about the Libreoffice-commits mailing list