<br><br><div class="gmail_quote">On Thu, Nov 25, 2010 at 12:36 AM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, 25 Nov 2010 00:03:09 +0300<br>
Max Vlasov <<a href="mailto:max.vlasov@gmail.com">max.vlasov@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> sometimes it takes time for a Delphi developer to understand the logic of<br>
> fpc/lazarus packages and it's indeed content and full. Recently tried to<br>
> measure different performance related numbers for a project and finally got<br>
> that I should change the level of optimization for packages, not for the<br>
> project if performance-related unit is in a package (CMIIW). But just<br>
> wondering,.. these options actually consumes time so more often developers<br>
> leave optimization to fastest and when the time comes, rebuilds the project<br>
> with full optimization on. It looks like there's no single option allowing<br>
> do this for a given project in Lazarus, right? But even if there's an option<br>
> to rebuild all related packages, I still can't with one click change this<br>
> radiobox for every related package. Probably this won't be a problem if I<br>
> finally understand the logic and get used to it, just trying to find whether<br>
> I miss something<br>
<br>
</div></div>You can add a macro (e.g. $(MyOptions) ) to the custom options of<br>
a package and set the macro in the project build macros (e.g.<br>
MyOptions=-O4). You need 0.9.29 for this.<br>
<font color="#888888"><br>
<br>
<br></font></blockquote><div><br>Mattias, it looks very promising, but will it affect the logic of "build all" command, currently from what I see from output it doesn't care about other packages units as long as their dates were not changed. In other words, what is the menu item I should use to "force" fpc compile not only units with changed dates, but all units from all packages using and with my new $(MyOptions)?<br>
<br>Max<br></div></div><br>