[fpc-pascal] fpmake dependencies

Michael Van Canneyt michael at freepascal.org
Tue Apr 14 18:27:29 CEST 2009



On Tue, 14 Apr 2009, Mattias Gärtner wrote:

> Zitat von Michael Van Canneyt <michael at freepascal.org>:
> 
> >[...]
> > > The single parameter Options is a show stopper for the LCL, because I use
> > often
> > > flags like -gh plus a few -d flags for the experimental features.
> >
> > I understand.
> > Maybe we should change it to tstrings, and say that there should be one
> > option per line ? That avoids the hassle of having to parse the Options string
> for
> > quoted params.
> 
> Sounds good.
> 
> 
> > > >[...]
> > > > > That's where I looked. Should I copy the SearchFile procedure?
> > > >
> > > > Can't you use it instead of copy it ?
> > >
> > > It has no interface.
> >
> > No comprendo ?
> 
> SearchFile in fpmkunit is only defined in the implementation.
> I can of course use it via linker tricks, but I don't like that.

Ah. We can add it to the interface if you think this is useful.

> > > And btw, I don't understand why it uses:
> > >     if FindFirst(SearchDir+'*',faAnyFile and faDirectory,Info)=0 then
> > >
> > > faAnyFile and faDirectory = faDirectory.
> >
> > Indeed,
> > 1) it should be or instead of and
> > 2) anyfilemask should be used instead of '*' :-)

I'll have a look as soon as I find the time :-)

Michael.


More information about the fpc-pascal mailing list