SCons: colored compilation

This commit is contained in:
hurikhan
2015-01-12 12:54:17 +08:00
parent f3dc51fc69
commit f9a4e6890b
4 changed files with 46 additions and 0 deletions

View File

@ -40,6 +40,9 @@ def configure(env):
env["CC"]="clang"
env["CXX"]="clang++"
env["LD"]="clang++"
if (env["colored"]=="yes"):
if sys.stdout.isatty():
env.Append(CXXFLAGS=["-fcolor-diagnostics"])
is64=sys.maxsize > 2**32