From c88aaf9fc23de923ebe01c11b09a324178833802 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 8 Sep 2015 20:30:52 -0400 Subject: [PATCH] [SCons] Optionally show contents of config.log after errors This makes it easier to debug issues that occur on automated builds where the config.log file is hard to access directly. --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index d4eed7bb1..b85be8da7 100644 --- a/SConstruct +++ b/SConstruct @@ -779,7 +779,12 @@ if env['toolchain'] == 'mingw': def config_error(message): print 'ERROR:', message - print "See 'config.log' for details." + if env['VERBOSE']: + print '*' * 25, 'Contents of config.log:', '*' * 25 + print open('config.log').read() + print '*' * 28, 'End of config.log', '*' * 28 + else: + print "See 'config.log' for details." sys.exit(1) # First, a sanity check: