New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
has_header doesn't return a bool on 0.52.0 #6010
Comments
This seems to happen only when one of the dependencies is a disabler(). The minimal test case is if not disabler()
endif EDIT: As far as I know, it has always been an error, I dont think this is a regression. But this works: if disabler()
endif So there is definitely an inconsistency. |
|
disabler() is a special beast. Any statement that contains a disabler object return a disabler. So |
@emersion I was currious how you're using disabler. https://github.com/swaywm/wlroots/blob/master/examples/meson.build
|
@emersion I think I understood why it is a regression you're seeing. The problem is there: set_variable('foo', disabler()) used to skip the set_variable() function call instead of actually setting the variable. That means that your dep variables where still not-found dependencies instead of disabler objects. |
Thanks for the tips!
Ah, indeed, that makes sense. And the |
With a Meson file containing the following:
Meson fails with "ERROR: Argument to "not" is not a boolean" when
libavutil
is not found (it's optional).Downstream issue: swaywm/wlroots#1846
CI run with the failure: https://builds.sr.ht/~sircmpwn/job/94938#task-wlroots
CI run without the failure, Meson 0.51.2: https://builds.sr.ht/~sircmpwn/job/94937#task-wlroots
The text was updated successfully, but these errors were encountered: