[x264-devel] [PATCH] don't optimize for debug mode

Loren Merritt lorenm at u.washington.edu
Wed Jul 18 12:50:33 CEST 2007


On Wed, 18 Jul 2007, Limin Wang wrote:

>>> When I use gdb to debug the code, I'll get some unexpected result.
>>> Can we turn off the optimization for the debug mode?
>>
>> CFLAGS=-O0 ./configure --enable-debug
>
> Thanks, this works. Why we can't change -O1 to -O0 directly in configure
> for debug? Any reason for that?

What makes you think -O0 is the most common desired setting with debug? In 
my experience gdb and valgrind usually do the right thing with -O1, and 
I usually want the encode to run at decent speed.

--Loren Merritt
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list