Commit Graph
2 Commits
Author SHA1 Message Date
Eli Schwartz 2b4e79faa7 meson: explicitly mark run_command as fallible when returncode is checked
Meson emits a warning stating that the default will change from false to
true, in some future version, and that one should always pass
`check: BOOL` explicitly. Normally this is because commands that
unexpectedly fail would result in wrong behavior if the build treats it
as though it succeeded.

In this case, we were specifically relying on it being `check: false`,
as the returncode is immediately checked in order to provide a better
error message. Make this explicit in the meson.build file.

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2026-10-27 12:14:33 -04:00
Eli Schwartz 92969629bd meson: remove if conditionals for meson versions less than meson_version
The minimum version is too high to allow these checks to ever be false.
We can delete else branches as dead code and remove "if true"
constants.

Fixes:
```
meson.build:170: WARNING: Conditional on version '>= 0.55.0' always evaluates to true
meson.build:232: WARNING: Conditional on version '>= 0.55.0' always evaluates to true
```

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2026-10-27 12:14:33 -04:00