[Lazarus] FPC config file inheritance issue

Sven Barth pascaldragon at googlemail.com
Mon May 18 19:43:07 CEST 2015


On 18.05.2015 18:04, Péter Gábor wrote:
>
>
> 2015-05-18 17:31 keltezéssel, Mattias Gaertner írta:
>> fpc only reads the first config file it finds.
> I know this, but when the compilation aborted I was thinking that
> something was changed in the configuration parser.
>
> Now the problem seems to be different for me:
>
> If FPC finds project's local "fpc.cfg" (without dot) first and then
> stops searching for others, why does not find ".fpc.cfg" (with dot) in
> the same directory (or ignores it) and searches for others?

FPC looks for a configuration file in this order and uses the first 
(this is the Unix case):
- fpc.cfg in current directory
- .fpc.cfg in $HOME
- fpc.cfg in $PPC_CONFIG_PATH (if it is empty then it is the compiler's 
location + '../etc/')
- fpc.cfg in /etc/

Regards,
Sven




More information about the Lazarus mailing list