[Lazarus] Using different FPC versions

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 10 18:26:49 CET 2014


On Mon, 10 Feb 2014 19:01:28 +0200
patspiper <patspiper at gmail.com> wrote:

>[...]
> > You can not (yet) override environment variables like PATH when invoking FPC.
> > Once this is implemented, it can be done by "additions and overrides" too.
> 
> Although it is a welcome feature, it will make the usage really 
> complicated considering build modes might cater for debug/release, FPC 
> version, win/linux, etc...

You *can* override an env var, you don't need to. You can still use your
script and set env vars and restart the IDE.

 
> I instead propose to have a field next to the compiler path in the IDE 
> options that accepts fpc's -Xp parameter. Xp allows one to specify the 
> relative folder of the actual compiler (ppcxxx) with respect to the fpc 
> executable. That would work well since each ppcxxx's location is fixed 
> with respect to its associated fpc executable.

"fpc -h" does not mention -Xp.
"fpc -Xpdummy" does not give any error.
What does it do?

Mattias




More information about the Lazarus mailing list