[devtools,4/4] Use colored diagnostics by default.

Message ID 20191105233853.1842304-4-eschwartz@archlinux.org
State Rejected, archived
Headers show
Series [devtools,1/4] arch-nspawn: simplify cachedir/host_mirror parsing | expand

Commit Message

Emil Velikov via arch-projects Nov. 5, 2019, 11:38 p.m. UTC
I like color and feel comfortable using `less -R` to view logs.

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

Comments

Emil Velikov via arch-projects Nov. 5, 2019, 11:40 p.m. UTC | #1
On 11/5/19 6:38 PM, Eli Schwartz wrote:
> I like color and feel comfortable using `less -R` to view logs.
> 
> Signed-off-by: Eli Schwartz <eschwartz@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"

Hmm, sent in the wrong four patches. :p

Patch

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"