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 <[email protected]> AuthorDate: Sun Dec 8 02:26:55 2019 +0100 Commit: Thorsten Behrens <[email protected]> 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 <[email protected]> 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 _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
