[Lazarus] using two versions of RTL from lazarus

Marc Santhoff M.Santhoff at t-online.de
Mon Nov 10 16:30:40 CET 2008


Am Montag, den 10.11.2008, 10:52 +0000 schrieb Martin:
> Florian Klaempfl wrote:
> > Henry Vermaak schrieb:
> >   
> >>> How can I use lazarus to switch between those two?
> >>>       
> >> easiest is probably to install the ppu files to different locations,
> >> then invent a custom define and add it to your fpc.cfg to switch
> >> between different versions (where the -Fu paths are defined).
> >>
> >> you don't really need to do this if you are just worried about debug
> >> info, since you can strip the debug info afterwards.
> >>     
> >
> > This is not completetly true, when debugging it's also better to turn
> > the optimizer off to get better results.

I remember a switch definition for compiling releases in fpg.cfg ...

> Another option, not perfect, but doanle, is to use --primary-config-path
> You could have to shortcuts / two startup scripts, passing a diff config 
> directory to lazarus. Each would have one of the rtl-path in it's 
> enviroment conf.
> 
> It does mean to restart lazarus, in order to build releases (or start a 
> 2nd instance).
> 
> Alternatively, you may be able to swap you fpc.cfg file, while lazarus 
> is running, the next compile should pick up the new config.

... together with this remark it makes an idea.

I'll try do use some conditionals inside my fpc.cfg, although I'm not
sure where to find documentation on this topic someone here or on the
fpc list showed an example some time ago (regarding compiler versions
IIRC).

Thank you all,
Marc





More information about the Lazarus mailing list