osx support for llvm coloring added

This commit is contained in:
hurikhan 2015-01-12 14:04:25 +08:00
parent f9a4e6890b
commit 067a0d0e64
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ def configure(env):
env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND']) env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND'])
env["CC"]="clang" env["CC"]="clang"
env["LD"]="clang++" env["LD"]="clang++"
if (env["colored"]=="yes"):
if sys.stdout.isatty():
env.Append(CXXFLAGS=["-fcolor-diagnostics"])
import methods import methods