[Mesa-dev] Announcement: Meson build type change
Dylan Baker
dylan at pnwbakers.com
Tue Nov 7 17:13:00 UTC 2017
Quoting Eric Engestrom (2017-11-07 05:57:55)
> On Tuesday, 2017-11-07 06:54:59 -0700, Brian Paul wrote:
> > 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.
>
> Dylan wrote one, but I guess he hasn't pushed it yet. Dylan?
>
> >
> > -Brian
> >
I'll resend it in current form.
Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171107/7aedf630/attachment.sig>
More information about the mesa-dev
mailing list