aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/msetup.py
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2019-04-12 02:07:15 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-04-13 04:30:59 +0000
commiteaed4aecbe218018feed73192e6fc25e54034d53 (patch)
tree5c21f9c008876e1414e7c206f53f5d912f054d91 /mesonbuild/msetup.py
parente9b4344aee3d09aec669eda8e63a595a1161c160 (diff)
downloadmeson-eaed4aecbe218018feed73192e6fc25e54034d53.zip
meson-eaed4aecbe218018feed73192e6fc25e54034d53.tar.gz
meson-eaed4aecbe218018feed73192e6fc25e54034d53.tar.bz2
Run postconf scripts absolutely last.
Introspection is broken if they are run any earlier.
Diffstat (limited to 'mesonbuild/msetup.py')
-rw-r--r--mesonbuild/msetup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py
index ef0511d..563b811 100644
--- a/mesonbuild/msetup.py
+++ b/mesonbuild/msetup.py
@@ -209,8 +209,6 @@ class MesonApp:
else:
intr.backend.generate(intr)
build.save(b, dumpfile)
- # Post-conf scripts must be run after writing coredata or else introspection fails.
- intr.backend.run_postconf_scripts()
if env.first_invocation:
coredata.write_cmd_line_file(self.build_dir, self.options)
else:
@@ -223,6 +221,9 @@ class MesonApp:
else:
mintro.generate_introspection_file(b, intr.backend)
mintro.write_meson_info_file(b, [], True)
+
+ # Post-conf scripts must be run after writing coredata or else introspection fails.
+ intr.backend.run_postconf_scripts()
except Exception as e:
mintro.write_meson_info_file(b, [e])
if 'cdf' in locals():