From f9a4e6890bf5b21ae39c12f920e11005b07df9aa Mon Sep 17 00:00:00 2001 From: hurikhan Date: Mon, 12 Jan 2015 12:54:17 +0800 Subject: SCons: colored compilation --- platform/server/detect.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/server/detect.py') diff --git a/platform/server/detect.py b/platform/server/detect.py index 24b36d3188..e2d64c6545 100644 --- a/platform/server/detect.py +++ b/platform/server/detect.py @@ -40,6 +40,9 @@ def configure(env): env["CC"]="clang" env["CXX"]="clang++" env["LD"]="clang++" + if (env["colored"]=="yes"): + if sys.stdout.isatty(): + env.Append(CXXFLAGS=["-fcolor-diagnostics"]) is64=sys.maxsize > 2**32 -- cgit v1.2.3