diff options
author | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-12 12:54:17 +0800 |
---|---|---|
committer | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-12 12:54:17 +0800 |
commit | f9a4e6890bf5b21ae39c12f920e11005b07df9aa (patch) | |
tree | b120a7dac66338344123644dfacfcf64968712ca /platform/server | |
parent | f3dc51fc69ec3a16c6b2a6834ff0a6d933b1ddca (diff) |
SCons: colored compilation
Diffstat (limited to 'platform/server')
-rw-r--r-- | platform/server/detect.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |