[Mesa-dev] Announcement: Meson build type change

Eric Engestrom eric.engestrom at imgtec.com
Tue Nov 7 12:25:39 UTC 2017


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 :)

Cheers,
  Eric

[1] https://cgit.freedesktop.org/mesa/mesa/commit/?id=d5597f09c6a18a3ed2dd76657dd2e60806a6e4b2


More information about the mesa-dev mailing list