windows/MYconfigure: Have gcc diagnostics in color
authorLee <ler762@users.sourceforge.net>
Wed, 9 Aug 2023 06:35:05 +0000 (02:35 -0400)
committerLee <ler762@users.sourceforge.net>
Wed, 9 Aug 2023 06:35:05 +0000 (02:35 -0400)
It's nice having gcc warnings in color even if I run a script that does
  'make 2>&1 | tee  log.make'

windows/MYconfigure

index b34c95f..00658ed 100755 (executable)
@@ -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.