aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorHugo Locurcio2018-01-13 17:56:41 +0100
committerHugo Locurcio2018-01-13 17:56:41 +0100
commitbf32d3623092f80eeefacc0b76fb381f4c6843f8 (patch)
treeee1376664f557a32c5186956d515041f41c35a57 /SConstruct
parente141845bfb3e12a9213c8682d5b2589ce5305f70 (diff)
downloadgodot-bf32d3623092f80eeefacc0b76fb381f4c6843f8.tar.gz
godot-bf32d3623092f80eeefacc0b76fb381f4c6843f8.tar.zst
godot-bf32d3623092f80eeefacc0b76fb381f4c6843f8.zip
Disable colored output and progress bar when building outside of a TTY
This makes the output more readable if it is written to a file, and more compact in continuous integration environments, keeping the log sizes low. This commit also adds myself to .mailmap.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 7e82e582d..dcf8134c9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -498,7 +498,12 @@ node_count_interval = 1
node_pruning = 8 # Number of nodes to process before prunning the cache
if ('env' in locals()):
node_count_fname = str(env.Dir('#')) + '/.scons_node_count'
-show_progress = env['progress']
+# Progress reporting is not available in non-TTY environments since it
+# messes with the output (for example, when writing to a file)
+if sys.stdout.isatty():
+ show_progress = env['progress']
+else:
+ show_progress = False
import time, math