On Mon, 26 Jul 2010 14:49:02 +0200 Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:
> > On 26 Jul 2010, at 14:18, Bernd Kreuss wrote: > > > What is the easiest way to have a second installation of FPC around that > > I can easily switch to on the same machine without having to change half > > a dozen paths and moving config files around? > > Personally, I never actually install my development FPC versions (other than > manually copying the compiler binaries under different names, since as I work > on the compiler it's handy to have multiple versions for comparison purposes). > > I have a .fpc.cfg file in my home directory that looks more or less like this: > > --- > #ifdef VER2_5_1 > -vei > -l > -Fu/Data/dev/fpc/rtl/units/$fpctarget > -Fu/Data/dev/fpc/packages/*/units/$fpctarget > #else > #ifdef VER_2_4_3 > -vei > -l > -Fu/Data/dev/fpc-fixes/rtl/units/$fpctarget > -Fu/Data/dev/fpc-fixes/packages/*/units/$fpctarget > #else > #include /etc/fpc > #endif > #endif > --- > > You occasionally have to modify the version numbers in the #ifdef statements, > but other than that it's fairly hassle-free. How to combine this with > Lazarus, I don't know. Lazarus asks the compiler for its search paths and settings. So the above is also seen by the IDE. Whenever you change the compiler path in the environment options it asks again. It has a history list of all used compiler file names, so switching between two compilers is easy. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal