[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.
This commit is contained in:
Ray Speth 2015-09-08 20:30:52 -04:00
parent e5b5d591b0
commit c88aaf9fc2

View file

@ -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: