2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00

Fix Configure.autoconfig='clobber' when no previous configuration is present

This commit is contained in:
Thomas Nagy 2017-09-09 17:49:48 +02:00
parent 5aafea1bd3
commit 8c3a281746
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -625,7 +625,8 @@ def autoconfigure(execute_method):
cmd = env.config_cmd or 'configure'
if Configure.autoconfig == 'clobber':
tmp = Options.options.__dict__
Options.options.__dict__ = env.options
if env.options:
Options.options.__dict__ = env.options
try:
run_command(cmd)
finally: