summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/gbuild')
-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