[Mesa-dev] Announcement: Meson build type change

Brian Paul brianp at vmware.com
Tue Nov 7 13:54:59 UTC 2017


On 11/07/2017 05:25 AM, Eric Engestrom wrote:
> Hi all,
>
> As a result of the discussion that started with this message:
> https://lists.freedesktop.org/archives/mesa-dev/2017-November/175104.html
>
> The default build type for Meson builds has been changed to
> `debugoptimized` in commit d5597f09c6a18a3ed2dd [1].
>
> For you devs, this means that some debug information will now be missing
> if you use the default build type, due to the -O2 optimisations.
> You can set the build type by giving `meson` or `meson configure` the
> additional `-D buildtype=debug` option.
>
> (Note that existing build dirs are not affected, as Meson only uses the
> default values during the first initialisation, and stores them for
> subsequent invocations.)
>
> Also note that asserts are not automatically disabled on release builds,
> but are controlled by an independent option, `b_ndebug`, defaulting to
> `false`. Setting this option to `true` means "compile asserts out".
> Custom assertion code should be compiled based on the standard NDEBUG
> (which assert() uses), not Mesa's internal DEBUG.
>
> If you have any question regarding Meson, Dylan and I will probably be
> able to help you, so don't hesitate to ask :)

I still don't see any mention of meson in the docs/ directory.  I'd 
really appreciate someone writing a meson.html file that explains how to 
use meson and how to set build options like you just described.

-Brian



More information about the mesa-dev mailing list