I find it quite convenience to package together build options using Meson's native files. Unfortunately if I try to set the build type in a native file like e.g.:
[built-in options]
buildtype = 'debug'
this will not override the -Dbuildtype given by meson-python here (even though it's given earlier in the command line):
I'm not sure whether this is something that should be fixed in Meson or meson-python. One workaround could be to put these defaults in a native file specified earlier in the command line. This should cause them to be overwritten by the user native file correctly.
I find it quite convenience to package together build options using Meson's native files. Unfortunately if I try to set the build type in a native file like e.g.:
this will not override the
-Dbuildtypegiven by meson-python here (even though it's given earlier in the command line):meson-python/mesonpy/__init__.py
Line 874 in cfcfb35
I'm not sure whether this is something that should be fixed in Meson or meson-python. One workaround could be to put these defaults in a native file specified earlier in the command line. This should cause them to be overwritten by the user native file correctly.