aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/msetup.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-09-12 02:19:49 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-09-12 02:19:49 -0400
commit49d861763c5ba67b528c9920782c3acbd143c532 (patch)
tree20659c34a3be71103716f5d16109ad3e29ec3175 /mesonbuild/msetup.py
parentf291b637b13ba32e20d1081906e68780d2a5ae5a (diff)
downloadmeson-49d861763c5ba67b528c9920782c3acbd143c532.zip
meson-49d861763c5ba67b528c9920782c3acbd143c532.tar.gz
meson-49d861763c5ba67b528c9920782c3acbd143c532.tar.bz2
msetup: make xcode unsupported warning actually show
Until we invoke interpreter.Interpreter(b, ...) the coredata options still have their default values and thus cannot be used sensibly. Currently the warning never shows (other than, unsurprising in retrospect, during --internal regenerate).
Diffstat (limited to 'mesonbuild/msetup.py')
-rw-r--r--mesonbuild/msetup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py
index 27d2fd4..3c98fca 100644
--- a/mesonbuild/msetup.py
+++ b/mesonbuild/msetup.py
@@ -177,8 +177,6 @@ class MesonApp:
mlog.initialize(env.get_log_dir(), self.options.fatal_warnings)
if self.options.profile:
mlog.set_timestamp_start(time.monotonic())
- if env.coredata.options[mesonlib.OptionKey('backend')].value == 'xcode':
- mlog.warning('xcode backend is currently unmaintained, patches welcome')
with mesonlib.BuildDirLock(self.build_dir):
self._generate(env)
@@ -264,6 +262,11 @@ class MesonApp:
# Post-conf scripts must be run after writing coredata or else introspection fails.
intr.backend.run_postconf_scripts()
+
+ # collect warnings about unsupported build configurations; must be done after full arg processing
+ # by Interpreter() init, but this is most visible at the end
+ if env.coredata.options[mesonlib.OptionKey('backend')].value == 'xcode':
+ mlog.warning('xcode backend is currently unmaintained, patches welcome')
except Exception as e:
mintro.write_meson_info_file(b, [e])
if 'cdf' in locals():