summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorhurikhan <m4r10.5ch14ck@gmail.com>2015-01-12 14:04:25 +0800
committerhurikhan <m4r10.5ch14ck@gmail.com>2015-01-12 14:04:25 +0800
commit067a0d0e640e5c478715b55cd2f6fec39bf21326 (patch)
tree6d049232b51961b8b7212bcc87ffaff0dae0941e /platform/osx/detect.py
parentf9a4e6890bf5b21ae39c12f920e11005b07df9aa (diff)
osx support for llvm coloring added
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 141a876657..08784be810 100644
--- a/platform/osx/detect.py
+++ b/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