diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 18:43:09 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 19:02:31 +0100 |
commit | ca9f746af500be98f7c65b7f1bd0f50ad936a8b6 (patch) | |
tree | 789465df66ea327e642c3e80d690ed7e4a38b1a6 /waflib/Scripting.py | |
parent | a7860f7e495583f536480a7cce2b6e0c55926f3a (diff) | |
parent | b2ca9626b290e8ab5bfa6269dfc7afe64a012ce1 (diff) | |
download | lv2-ca9f746af500be98f7c65b7f1bd0f50ad936a8b6.tar.xz |
Update autowaf and adapt to new API
Diffstat (limited to 'waflib/Scripting.py')
-rw-r--r-- | waflib/Scripting.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/waflib/Scripting.py b/waflib/Scripting.py index 749d4f2..ae17a8b 100644 --- a/waflib/Scripting.py +++ b/waflib/Scripting.py @@ -216,7 +216,10 @@ def parse_options(): ctx = Context.create_context('options') ctx.execute() if not Options.commands: - Options.commands.append(default_cmd) + if isinstance(default_cmd, list): + Options.commands.extend(default_cmd) + else: + Options.commands.append(default_cmd) if Options.options.whelp: ctx.parser.print_help() sys.exit(0) @@ -280,7 +283,7 @@ def distclean_dir(dirname): pass try: - shutil.rmtree('c4che') + shutil.rmtree(Build.CACHE_DIR) except OSError: pass @@ -598,12 +601,15 @@ def autoconfigure(execute_method): cmd = env.config_cmd or 'configure' if Configure.autoconfig == 'clobber': tmp = Options.options.__dict__ + launch_dir_tmp = Context.launch_dir if env.options: Options.options.__dict__ = env.options + Context.launch_dir = env.launch_dir try: run_command(cmd) finally: Options.options.__dict__ = tmp + Context.launch_dir = launch_dir_tmp else: run_command(cmd) run_command(self.cmd) |