diff options
| author | Juan Linietsky | 2015-01-17 09:47:02 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-01-17 09:47:02 -0300 |
| commit | 7ac7956baf220118a2a10162d3eebf25c2054980 (patch) | |
| tree | 30b5b56f1a3e17b55bd2fddd18fcbc245a5927c9 /platform | |
| parent | 938c6d0df386e59f0ad59f71163fbb9e168e9294 (diff) | |
| parent | 928e068f71afed015bdf6851dad7d4f57f827ef6 (diff) | |
| download | godot-7ac7956baf220118a2a10162d3eebf25c2054980.tar.gz godot-7ac7956baf220118a2a10162d3eebf25c2054980.tar.zst godot-7ac7956baf220118a2a10162d3eebf25c2054980.zip | |
Merge pull request #1188 from hurikhan/scons_colored
Scons colored
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/osx/detect.py | 3 | ||||
| -rw-r--r-- | platform/server/detect.py | 3 | ||||
| -rw-r--r-- | platform/x11/detect.py | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 141a87665..5703cbc54 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 diff --git a/platform/server/detect.py b/platform/server/detect.py index 24b36d318..e2d64c654 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 diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 8264196a4..5171bc972 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -82,6 +82,9 @@ def configure(env): env.extra_suffix=".llvms" else: env.extra_suffix=".llvm" + if (env["colored"]=="yes"): + if sys.stdout.isatty(): + env.Append(CXXFLAGS=["-fcolor-diagnostics"]) |
