From: Lee <ler762@users.sourceforge.net>
Date: Wed, 9 Aug 2023 06:35:05 +0000 (-0400)
Subject: windows/MYconfigure: Have gcc diagnostics in color
X-Git-Tag: v_4_0_0~171
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/@default-cgi@show-url-info?a=commitdiff_plain;h=ba0f8604adf6a9ef25c01ae181638754c49aa969;p=privoxy.git

windows/MYconfigure: Have gcc diagnostics in color

It's nice having gcc warnings in color even if I run a script that does
  'make 2>&1 | tee  log.make'
---

diff --git a/windows/MYconfigure b/windows/MYconfigure
index b34c95f1..00658ed2 100755
--- a/windows/MYconfigure
+++ b/windows/MYconfigure
@@ -39,6 +39,11 @@ export LDFLAGS=""
 # start with initially empty flags
 
 
+CFLAGS="${CFLAGS} -fdiagnostics-color=always"
+# Have gcc diagnostics be in color even if stderr is not going to a terminal.
+# It's nice having warnings in color even if I run a script that does
+#   'make 2>&1 | tee log.make'
+
 CFLAGS="${CFLAGS} -fstack-protector-strong -D_FORTIFY_SOURCE=2"
 LDFLAGS="${LDFLAGS} -fstack-protector-strong"
 # -fstack-protector-strong:  enable stack checking.