On Sun, 12 Mar 2006, Mattias Gaertner wrote:
> On Sat, 11 Mar 2006 20:36:21 +0100 (CET)
> Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
> >
> >
> > On Sat, 11 Mar 2006, Mattias Gaertner wrote:
> >
> > >
> > > Here is the november mail:
> > >
> > > On Tue, 8 Nov 2005 20:16:21 +0100 (CET)
> > > Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > >
> > > >[...]
> > > > This is correct. Revision 1698 contains this fix.
> > > >
> > > > The behaviour is now:
> > > > - If -o contains a path, it overrides any previous -FE.
> > > > If -o does not contain a path, it leaves any -FE setting intact.
> > > > - If -FE is specified after -o, it will override the output path.
> > > >
> > > > So
> > > >
> > > > -FEdir1 -odir2/binfile outputs in dir2
> > > > -FEdir2 -obinfile outputs in dir2
> > > > -odir1/binfile -FEdir2 outputs in dir2
> > >
> > >
> > > It seems, the description is nice, but the examples demonstrates the
> > > reality. ;)
> >
> > ? Do you think it's not correct ?
> >
> > home: >ppc386 -iD
> > 2005/11/28
> > home: >ls
> > dir2/ p.pp
> > home: >ppc386 -FEdir1 -odir2/binfile p.pp
> > home: >ls
> > dir2/ p.pp
> > home: >ls dir2
> > binfile* p.o
> > home: >rm dir2/binfile; ppc386 -FEdir2 -obinfile p.pp
> > home: >ls dir2
> > binfile* p.o
> > home: >rm dir2/binfile ; ppc386 -odir1/binfile -FEdir2 p.pp
> > home: >ls dir2
> > binfile* p.o
> > home: >ls
> > dir2/ p.pp
> >
> > So, unless the compiler was changed afterwards, the behaviour
> > is exactly as described, so it seems to me ?
> >
> > I admit to being sloppy from time to time, but I tested
> > the behaviour extensively that time...
>
> I'm sure you did.
> But -o overrides the whole -FE, not only the output of the exe, but the unit
> output too.
> FPC 2.0.2 and 2.0.3 (a few days ago) do this:
>
> ppc386 -FEdir1 -odir2/binfile p.pp
> ls -l dir1 dir2
> dir1:
>
> dir2:
> binfile p.o uni1.ppu unit1.o
Ah. OK, I see.
Note that my remarks were for 2.1.1, not 2.0.2 or 2.0.3
In 2.1.1/2.0.3 the used variables for unit output path and exe output path
are totally different:
OutputUnitDir only set by -FU
OutputExeDir set by -FE and -o
OutputFile only set by -o
I don't see any other code (Checked today's code)
I diffed 2.1.1 with todays 2.0.3 and the code handling these options is exactly
the same.
Peter, Florian, any suggestions ?
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives