Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-04

Recursive unit search path

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

L

-Fu/home/me/project1/units/*.*

No such thing for FPC, right? Recursive units searches?

Could be useful, but dangerous if directories contain different versions of the source file in different places.
Still, in many projects I get sick of continually adding new directories to the search path - and in many projects there are not more than one version of a source file kicking around.

Is there an existing recursive option like this for -Fu and -Fi?

Reply by email

Jonas Maebe
to L
-Fu/home/me/project1/units/*.* No such thing for FPC, right? Recursive units searches?

Have a look at the standard /etc/fpc.cfg and you'll see things like

-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/*

So yes, it's supported (but use * and not *.* under linux/*nix, because otherwise you'll only match directory names which contain a ".")

Jonas

Reply by email