diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-03-28 08:43:15 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-03-30 17:10:53 -0400 |
commit | 0418a40e68704e2ad36148eb72e92a1206de72dd (patch) | |
tree | ce86b96a61bb87379e481a3b9f8df499711bbb10 /mesonbuild/backend/nonebackend.py | |
parent | ad151d9f1123e84fea055848867c33bc965307f8 (diff) | |
download | meson-0418a40e68704e2ad36148eb72e92a1206de72dd.zip meson-0418a40e68704e2ad36148eb72e92a1206de72dd.tar.gz meson-0418a40e68704e2ad36148eb72e92a1206de72dd.tar.bz2 |
msetup: use more consistent exceptions on exit
- MesonException for errors is clearer than SystemExit('error message')
and provides meson-formatted "ERROR: ..."
- `raise SystemExit` with no parameter isn't obvious that it intends to
exit successfully
While clarifying the latter, it was observed to cause
test_preprocessor_checks_CPPFLAGS() failure to be ignored. That test
checks get_define() on both c and cpp compilers, which means we need to
define either CPPFLAGS or both CFLAGS+CXXFLAGS.
Diffstat (limited to 'mesonbuild/backend/nonebackend.py')
0 files changed, 0 insertions, 0 deletions