summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-01-17 09:47:02 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-01-17 09:47:02 -0300
commit7ac7956baf220118a2a10162d3eebf25c2054980 (patch)
tree30b5b56f1a3e17b55bd2fddd18fcbc245a5927c9 /platform/osx/detect.py
parent938c6d0df386e59f0ad59f71163fbb9e168e9294 (diff)
parent928e068f71afed015bdf6851dad7d4f57f827ef6 (diff)
Merge pull request #1188 from hurikhan/scons_colored
Scons colored
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..5703cbc546 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(CPPFLAGS=["-fcolor-diagnostics"])
import methods