From 067a0d0e640e5c478715b55cd2f6fec39bf21326 Mon Sep 17 00:00:00 2001 From: hurikhan Date: Mon, 12 Jan 2015 14:04:25 +0800 Subject: osx support for llvm coloring added --- platform/osx/detect.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3