-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
glib fails to configure with KeyError: Tried to access nonexistant project parent option b_vscrt. #14255
Comments
That is caused by this line in the main
It is unconditionally asking for that option, even though it is only defined on Windows platforms. I checked version 1.7.0 and |
In 1.6.1 it returns The documentation says
but does not say for each option on which platforms and with which compilers they might be available. I am not sure if it's really reasonable to expect Meson users to just "know" what's what in this case, especially if a reasonable default value is available that was returned on Linux/with gcc before. If it's not too much hassle we should probably add a column to the documentation with more info for each option and make this work with a warning for another release or three? |
Checking for this would be so tedious, it’s not just a question of “what is my platform”, but what are both my host and build compilers, since either of them could be msvc and enable this. |
If we really want to not populate these in meson 2.0 we could move to a fallback parameter, and of the fallback isn’t provided then it errors, but that’s still a breaking change and would have to go through a proper deprecation cycle |
Option refactor regression I presume.
The text was updated successfully, but these errors were encountered: