[Mesa-dev] [PATCH] Revert "configure.ac: Disable compiler optimizations when --enable-debug is set"

Kenneth Graunke kenneth at whitecape.org
Tue Jan 8 12:17:49 PST 2013


On 01/08/2013 12:06 PM, Matt Turner wrote:
> On Tue, Jan 8, 2013 at 8:38 AM, Marek Olšák <maraeo at gmail.com> wrote:
>> Some distributions use --enable-debug for testing packages and the commit
>> results in terrible CPU performance. It can be embarrassing for us.
>
> If distros want debug symbols, they should put -g in their CFLAGS
> instead of --enable-debug. --enable-debug turns on a lot of other
> things.

I concur.

Personally I think that --enable-debug ought to make it possible to use 
a debugger sanely (which requires -O0).  But I override CFLAGS/CXXFLAGS 
anyway.


More information about the mesa-dev mailing list