meson
meson copied to clipboard
Unclear default value for unity-size and python.bytecompile in "meson setup --help" output
Describe the bug
meson setup --help
prints confusing information for the options --unity-size
and --python.bytecompile
.
It looks like the supported values are listed here instead of the default value.
options:
--unity-size UNITY_SIZE Unity block size (default: (2, None, 4)).
--python.bytecompile PYTHON.BYTECOMPILE Whether to compile bytecode (default: (-1, 2, 0)).
To reproduce
meson setup --help
Expected behavior
Only one (the actual) default value should be stated here. The supported values should be printed in the first column.
--optimization
does it like this:
options:
--optimization {plain,0,g,1,2,3,s} Optimization level (default: 0).
System parameters
- What operating system: Arch Linux
- What Python version: 3.12.3
- What
meson --version
: 1.4.1
Additional information
- https://mesonbuild.com/Builtin-options.html#python-module
- https://mesonbuild.com/Unity-builds.html#unity-builds