Skip to content

Commit

Permalink
[SCons] Optionally show contents of config.log after errors
Browse files Browse the repository at this point in the history
This makes it easier to debug issues that occur on automated builds where
the config.log file is hard to access directly.
  • Loading branch information
speth committed Oct 14, 2015
1 parent e5b5d59 commit c88aaf9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c88aaf9

Please sign in to comment.