[Lazarus] Using different FPC versions

patspiper patspiper at gmail.com
Mon Feb 10 18:59:04 CET 2014


On 10/02/14 19:54, Mattias Gaertner wrote:
> On Mon, 10 Feb 2014 14:44:50 +0100 (CET)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> [...]
>> I use a full path to ppcx64-x.y.z
> How did you create ppcx64-x.y.z?
> AFAIK none of the installers create this.

This seems to be one way to use different fpc versions with Lazarus, and 
the renaming or soft linking is done manually.

>
>   
>> I do this, because lazarus does not - out of the box - support the passing of the version to FPC as in:
>>
>> fpc -V2.6.4
> You can pass it in the custom compiler options, but it is currently
> not parsed by the IDE, so it uses the default version for codetools.
>
>   
>> [...]
>> Maybe the lazarus devels are not aware of this -V option.
>> It's not widely used or propagated, after all.
> You are the first I know who uses it. :)

AFAIK, allowing one to specify -Xp<compilerpath> in the IDE options 
makes the -V unnecessary in most cases.

Stephano




More information about the Lazarus mailing list