[Mesa-dev] [PATCH] Revert "configure.ac: Disable compiler optimizations when --enable-debug is set"
edwin+ml-mesadev at etorok.net
Thu Jan 10 06:48:27 PST 2013
On 01/08/2013 10:17 PM, Kenneth Graunke wrote:
> 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
> 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.
Would it make sense to show something in the OpenGL renderer string about the status of these flags?
#if defined(__GNUC__) && !defined(__OPTIMIZE__)
At least it'll be obvious what the problem is if someone misconfigured Mesa.
More information about the mesa-dev