[Lazarus] Custom OS/CPU targets for FPC - build help

David Unric dunric29a at gmail.com
Tue Jan 3 21:16:34 CET 2012


On Tue, Jan 3, 2012 at 5:29 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de>wrote:

> On Tue, 3 Jan 2012 17:19:57 +0100
> David Unric <dunric29a at gmail.com> wrote:
>
> >[...]
> > > > Lazarus 0.9.31 seems to do not use -P option as it still produces
> i386
> > > code
> > > > even if target CPU family is set to x86_64 in Project options and
> exe is
> > > > rebuilt from scratch (console app).
> > >
> > > It does use the -P and -T switch. But it passes them only if they
> > > differ from the default.
> > >
> > I'm still confused here. I did peek into .lpi project options file and it
> > contains the following tag:
> >
> >     <CodeGeneration>
> >       <TargetCPU Value="x86_64"/>
> >       <TargetOS Value="win64"/>
> >     </CodeGeneration>
> > Although a clean rebuild of source produces i386 executable. No error
> > messages during compilation phase.
> > ???
>
> Hmm. Maybe your fpc.exe and lazarus.exe were compiled differently and
> have different defaults.
> I changed the IDE to always pass the -T and -P if they are set.
>
> Just had a look at command line options Lazarus passes to FPC (Show
options in Project options) and can confirm, the cpu target -P is missing
if x86_64 is explicitly selected.

How did you changed IDE to always pass -T and -P options ?

Thx.

David


>
> >[...]
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120103/12c43cc9/attachment-0003.html>


More information about the Lazarus mailing list