[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:
parent
e5b5d591b0
commit
c88aaf9fc2
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue