Seth Grover | 9 Feb 23:17
Picon

lazbuild and cross-compiling

I'm not sure if this is a bug, or if I'm just not doing it right...

I am running in a 64-bit Linux environment with FPC 2.4.0 with
cross-compiling set up (ie., I have both ppcx64 and ppc386 installed,
FPC's default is to use ppx64) If I save a project (the default new
application with the single empty form is fine for this example) and I
set the Target CPU to i386, and do a "Run | Build All" from within
Lazarus, the file that's generated is a 32-bit application, which is
correct.

However, if I do "lazbuild project1.lpi" I can see from the command
line that's printed out and from examining the resultant file that
it's a 64-bit application. If I do "lazbuild --cpu=i386" it works
correctly, but lazbuild's help says "--cpu" is used to "orverride the
project cpu." Since my .lpi file contains <TargetCPU Value="i386"/>
shouldn't lazbuild figure it out and do the right thing (build a
32-bit application) by default?

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane