Colorize compiler output on linux

This commit is contained in:
Kovid Goyal 2019-12-06 14:36:57 +05:30
parent dd12f0a76e
commit 5a1b4430b2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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: