Browse Source

osx support for llvm coloring added

hurikhan 10 years ago
parent
commit
067a0d0e64
1 changed files with 3 additions and 0 deletions
  1. 3 0
      platform/osx/detect.py

+ 3 - 0
platform/osx/detect.py

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