[Lazarus] Strip debug info

Martin lazarus at mfriebe.de
Sun Apr 29 12:12:30 CEST 2012


On 29/04/2012 10:12, Jürgen Hestermann wrote:
> Florian Klämpfl schrieb:
> > What's the problem with the .exe size when compiling with debug 
> info? If
> > one compiles with debug settings, one usually wants to have the debug
> > info? If not, don't use debug settings.
>
> Well, the problem is the size of the exe file. ;-)
> When I am working on a project I usually want to generate debug 
> information for debugging.
> But when I give the generated file to someone else I surely do not 
> need this information in the exe file anymore.
> So why should I be forced to search for ways to delete this 
> information from the exe if there could be a way to avoid this hassle?
>

Well, most people need 2 build profiles anyway.

For when I debug I have -Crio -O1, heap trc and other flags.
On release I have -O2, and no -C...., no heaptrc...




More information about the Lazarus mailing list