From 8c3a28174629f3b272663cf412d2b5d75270c2b7 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 9 Sep 2017 17:49:48 +0200 Subject: [PATCH] Fix Configure.autoconfig='clobber' when no previous configuration is present --- waflib/Scripting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waflib/Scripting.py b/waflib/Scripting.py index b86835df..1305fae1 100644 --- a/waflib/Scripting.py +++ b/waflib/Scripting.py @@ -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: