Open emilyyyylime opened 3 weeks ago
After looking into this, it seems to be due to b_pie
being an option which is added to the internal options list by a compiler, but because the project()
in the example does not specify a language, meson has not yet made an attempt to detect any compilers. This definitely seemed like a bug to me and after searching around it has been noticed before: #12923.
If you manually add a language in the project definition, it should avoid the behaviour that you are encountering:
$ echo "project('placeholder', 'c')" > meson.build
Would this be an acceptable workaround for the time being until a solution for #12923 can be worked on?
To Reproduce
(seemingly you're also missing a closing quote)
Expected behaviour / use-case The only reason I'm facing this issue is because I'm running meson as part of an automated build/installation process (specifically an AUR package), and it should seamlessly work the first time as well as on repeated invocations (for example when some of the code is updated but we would like to keep previous build artifacts for faster compile-time). I don't mind the warning—the only issue is that meson is quitting with nonzero status making the packaging pipeline consider it as failed. Do you think changing this could be feasible?