[vlc-devel] [PATCH] Build contribs with debugging symbols

Rémi Denis-Courmont remi at remlab.net
Wed Aug 29 17:45:53 CEST 2012


On Wednesday 29 August 2012, Sergey Radionov wrote:
> How about -O0 option for vlc debug builds? It will be very usefull, at
> least for me.

I am opposed to disabling optimizations in contribs for several reasons:
- Managing multiple contrib variants per target is impractical.
- Some contrib packages has custom optimizations flags.
- Optimized contribs should be tested as much as possible.

The last argument also applies to VLC builds. It's best to keep the side 
effects of debug to a minimum, mainly run-time assertions. That way developers 
test code that is closer to what the users get.

Thus, optimizations should be disabled only when debugging a *specific* problem 
where they interfere with the debugger. This is quite rare in my experience.

Rémi Denis-Courmont

More information about the vlc-devel mailing list