Bo Berglund <[email protected]> hat am 18. Februar 2011 um 11:43
geschrieben:

>[...]
> Couldn't Lazarus be "smart" about the code generation as follows:
> 1) When one clicks the run button (green arrow) lazarus creates the
> exe file with embedded debug information such that breakpoints etc
> work for debugging.
>
> 2) When one uses the build function Lazarus does NOT use the compile
> option to enter debug data into the exe, thus creating the slimmer
> file.
>
> With this one would get the best of both worlds, right? 
No, that would be a bug. "Compile" let the compiler compile all new, "Build"
recompiles all units of the project.
 
You can define a second build mode "release" and enable whatever optimization
you think is appropriate for your customers. 
 

Mattias 
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to