Colorize compiler output on linux

This commit is contained in:
Kovid Goyal
2019-12-06 14:36:57 +05:30
parent dd12f0a76e
commit 5a1b4430b2
+2
View File
@@ -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: