I'm trying to configure a project with meson. Specifically, I'm trying to set some of the options.
meson config
tells me, among other things:
Core options:
Option Current Value Possible Values Description
------ ------------- --------------- -----------
buildtype debug [plain, debug, debugoptimized, release, minsize, custom] Build type to use
Base options:
Option Current Value Possible Values Description
------ ------------- --------------- -----------
b_lto false [true, false] Use link time optimization
(other options were clipped from this printout of course.)
So, I write:
meson build . --buildtype=release
in my build directory, and this goes fine - no warnings or errors (I double-checked that the option value had changed). Then I write:
meson build . --b_lto=true
but this gets me:
meson: error: unrecognized arguments: --b_lto=true
I also tried -b_lto=true
, --b_lto true
, b_lto=true
and b_lto true
. And all of those without the true
value. No luck.
How do I set these "base options" then?
--option=value
and--option value
style passing of arguments only applies to the information in theuniversal options
but not the other group of objects, the manual was not explicit in this regard. I'll change my answer (again) to reflect his information. – Darkroom