aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mconf.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-01-02 19:27:20 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-06 22:03:29 +0100
commitab32f1fe0002885b7417230f6edf0d74574a9a2f (patch)
tree849ba0b066c01a15d857c71448d8341c47d9f4ca /mesonbuild/mconf.py
parent38241f5fceebb17e957c80085df4cbe2cf7816de (diff)
downloadmeson-ab32f1fe0002885b7417230f6edf0d74574a9a2f.zip
meson-ab32f1fe0002885b7417230f6edf0d74574a9a2f.tar.gz
meson-ab32f1fe0002885b7417230f6edf0d74574a9a2f.tar.bz2
Added meson-info.json
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r--mesonbuild/mconf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index 61bb74b..59ecfcb 100644
--- a/mesonbuild/mconf.py
+++ b/mesonbuild/mconf.py
@@ -149,6 +149,7 @@ class Conf:
def run(options):
coredata.parse_cmd_line_options(options)
builddir = os.path.abspath(os.path.realpath(options.builddir))
+ c = None
try:
c = Conf(builddir)
save = False
@@ -164,7 +165,10 @@ def run(options):
if save:
c.save()
mintro.update_build_options(c.coredata, c.build.environment.info_dir)
+ mintro.write_meson_info_file(c.build, [])
except ConfException as e:
print('Meson configurator encountered an error:')
+ if c is not None and c.build is not None:
+ mintro.write_meson_info_file(c.build, [e])
raise e
return 0