Closed
Description
Currently, we default to -Ddebug=false -Doptimization=2
. When we did this, see #27, we always meant to add a way to disable it and allow customizing the options. In #167, we added a way to pass arguments to Meson, but we didn't revisit this.
meson-python/mesonpy/__init__.py
Lines 812 to 814 in f9dc18f
So, we need to figure out how this should be configured, and if we should actually have different behaviors, for editable builds for eg.
My initial proposal would be to add a tool.meson-python.args.remove-defaults
(alternative name suggestions welcome) setting, which would remove the default arguments. This option would be enabled by default on editable builds, and disabled by default on normal builds.