From 43101489cd7b310996badaef19638ec3adbec532 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 25 Oct 2018 12:19:23 -0400 Subject: Recover when coredata cannot be loaded Write command line options into a separate file to be able to reconfigure from scatch in the case coredata cannot be loaded. The most common case is when we are reconfiguring with a newer meson version. This means that we should try as much as possible to maintain backward compatibility for the cmd_line.txt file format. The main difference with a normal reconfigure is it will use new default options values and will read again environment variables like CFLAGS, etc. --- mesonbuild/mconf.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/mconf.py') diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 576c574..d0f837d 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -153,6 +153,7 @@ def run(options): save = False if len(options.cmd_line_options) > 0: c.set_options(options.cmd_line_options) + coredata.update_cmd_line_file(builddir, options) save = True elif options.clearcache: c.clear_cache() -- cgit v1.1