From 5a1b4430b2ea51338debe3c71df834f5cce902a1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Dec 2019 14:36:57 +0530 Subject: [PATCH] Colorize compiler output on linux --- setup/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/build.py b/setup/build.py index 1e25574b32..6d00bb9fb3 100644 --- a/setup/build.py +++ b/setup/build.py @@ -173,6 +173,8 @@ def init_env(): if islinux: cflags.append('-pthread') + if sys.stdout.isatty(): + cflags.append('-fdiagnostics-color=always') ldflags.append('-shared') if isbsd: