diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-10-25 12:19:23 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2018-11-06 16:37:13 -0500 |
commit | 43101489cd7b310996badaef19638ec3adbec532 (patch) | |
tree | 80571c19bb3ff6c3b7cd42995555b875795cfe65 /mesonbuild/mconf.py | |
parent | 11e3011a6bf0adeb51582c590c90b0f4dccb4df8 (diff) | |
download | meson-43101489cd7b310996badaef19638ec3adbec532.zip meson-43101489cd7b310996badaef19638ec3adbec532.tar.gz meson-43101489cd7b310996badaef19638ec3adbec532.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 1 |
1 files changed, 1 insertions, 0 deletions
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() |