FYI: Cleanup of debug options

David Ostrovsky david.ostrovsky at gmx.de
Mon Nov 5 13:22:48 PST 2012


On 05.11.2012 17:15, Michael Meeks wrote:
> 	Why do I extensively use that option, though I'm not a packager:
>
> 	* I like to run the code the end-user runs - warts and all.
> 	* I like to be able to profile accurately without re-building
> 	  everything (cf. above)
> 	* Having no symbols / debug-info is rather unhelpful for both
> 	  debugging, and profiling though  perhaps it's a reasonable
> 	  default for size reasons

On 05.11.2012 18:06, Norbert Thiebaud wrote:
> actually that is platform and even sometime source dependent.
> which makes global level carpet bombing using CFLAGS/CXXFLAGS/LDFLAGS
> a not necessarily appealing option.

Thank you both for this justfication,
which i've shamelsellsy stolen for the commit message ;-)

On 05.11.2012 18:10, Michael Stahl wrote:
>> Note that what the end user runs is -O2 rather than -Os IIUC.
> yes...and no. both are true actually:
>
>> >[0] ms at bastet:/master > git grep -- "-O2" solenv/gbuild/  | wc -l
>> >18
>> >[0] ms at bastet:/master > git grep -- "-Os" solenv/gbuild/  | wc -l
>> >10
>> >[0] ms at bastet:/master > git grep -- "-O " solenv/gbuild/platform/  | wc -l
>> >2
> so if you want to do profiling you simply have to look up which one your
> particular architecture uses first to get meaningful numbers.
No you shouldn't! That what the build systems are for:

https://gerrit.libreoffice.org/#/c/975/

Regards
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20121105/e3b138c6/attachment.html>


More information about the LibreOffice mailing list