[arch-projects] [devtools] [PATCH 4/4] Use colored diagnostics by default.

Eli Schwartz eschwartz at archlinux.org
Tue Nov 5 23:38:53 UTC 2019


I like color and feel comfortable using `less -R` to view logs.

Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
 makepkg-x86_64.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/makepkg-x86_64.conf b/makepkg-x86_64.conf
index 137d412..7fc3611 100644
--- a/makepkg-x86_64.conf
+++ b/makepkg-x86_64.conf
@@ -39,8 +39,8 @@ CHOST="x86_64-pc-linux-gnu"
 
 #-- Compiler and Linker Flags
 CPPFLAGS="-D_FORTIFY_SOURCE=2"
-CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
-CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
+CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fdiagnostics-color=always"
+CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fdiagnostics-color=always"
 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
 #-- Make Flags: change this for DistCC/SMP systems
 #MAKEFLAGS="-j2"
-- 
2.24.0


More information about the arch-projects mailing list