[Mesa-dev] Mesa (master): scons: Make debug build default.

Michel Dänzer michel at daenzer.net
Tue Apr 13 02:12:14 PDT 2010

On Sun, 2010-04-11 at 01:23 -0700, Jose Fonseca wrote: 
> Module: Mesa
> Branch: master
> Commit: 21780adc2ed1b10c5c4c71427b8212b8464d065d
> URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=21780adc2ed1b10c5c4c71427b8212b8464d065d
> Author: José Fonseca <jfonseca at vmware.com>
> Date:   Sat Apr 10 02:44:52 2010 +0100
> scons: Make debug build default.
> I've been back and forth on this, but I believe it's worth to have debug
> by default.
> Most humans (developers, testers) will want to use the debug version  by
> default.  Many build bots want release but they are bots, and humans >
> bots, so I don't care that much.
> This is part of my initiative of minimizing the scons option mess many
> complain about.

I wonder if a single boolean option is expressive enough for this
though. E.g., with the traditional DRI drivers, I can build with
--enable-debug and get more or less the same performance but some
debugging features such as assertions[0]. scons debug=1 tends to incur
much more overhead, making it impractical to have it enabled for builds
being used on a day-to-day basis.

[0] Dave Airlie pointed out on IRC that assertions really shouldn't be
restricted to 'debug' builds but should only be disabled for 'release'
builds (with NDEBUG defined).

So maybe there should be a separate 'release' option, and possibly
several levels of debug. Not really sure what makes the most sense.

Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer

More information about the mesa-dev mailing list