[fpc-pascal] How to handle fpc.cfg on Ubuntu with 3.0.4 and 3.2.0 co-existing?

Bo Berglund bo.berglund at gmail.com
Tue Feb 9 00:53:29 CET 2021


On Mon, 8 Feb 2021 17:20:12 +0000, Graeme Geldenhuys via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

>On 06/02/2021 10:07 am, Bo Berglund via fpc-pascal wrote:
>> How do you manage different versions of the compiler in Lazarus?
>
>This is where I believe MSEide does things much better that Lazarus,
>but that's for another discussion.
>
>In Lazarus under "Tools -> Options... -> Compiler executable" I have a
>drop-down list of frequently used compilers versions. They all look
>as follows - just with the version in the path being different.
>
>  /data/devel/fpc-3.2.0/x86_64-linux/bin/fpc
>
>
>My ~/bin/fpc always point to the latest stable FPC version, but I hardly
>ever use it (maybe only for occasional command line compilation of small
>test programs). My IDEs always explicitly define which FPC executable I want
>to use. My IDEs never reference the one in ~/bin/
>

OK, that is a Lazarus global option.
If I want to build using 3.0.4 rather than 3.2.0 I will set this option
correspondingly, right?
But then if I forget about it and close Lazarus after the build and then later
come back and need to rebuild Lazarus, what will happen?
Will it try to use 3.0.4 in this case and fail since 3.2.0 is the minimum for
building Lazarus 2.0.10?

Or should I set the global option to 3.2.0 and if I want to build a *project*
then use the selector below Project/Project Options?
In Project Options/Compiler Options/Compiler Commands there is a drop-down for
selecting the specific compiler.

I assume if this is left as is as $(CompPath) it will use the globally defined
compiler 3.2.0, but if changed will use the project defined compiler instead.


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list