[Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread patspiper
Hi, The following applies at least to Linux, and should probably apply as well to other OSes. When multiple FPC versions are used, the fpc binary and related utilities are usually located in fpc folder/fpc version/bin, and the compiler itself (ppcxxx) in fpc folder/fpc version/lib/fpc/fpc

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread Mattias Gaertner
On Thu, 22 Aug 2013 15:39:47 +0300 patspiper patspi...@gmail.com wrote: [...] * If the FPCVER macro does not appear in any of the 2 paths (absolute path to the fpc binary and relative path of ppc compiler) then the fpc binary can be queried to set the FPCVER macro. The FPCVer always

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread Mark Morgan Lloyd
patspiper wrote: When multiple FPC versions are used, the fpc binary and related utilities are usually located in fpc folder/fpc version/bin, and the compiler itself (ppcxxx) in fpc folder/fpc version/lib/fpc/fpc version. The folders could be different than these, but the point to note is

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread patspiper
On 22/08/13 15:59, Mattias Gaertner wrote: On Thu, 22 Aug 2013 15:39:47 +0300 patspiper patspi...@gmail.com wrote: [...] * If the FPCVER macro does not appear in any of the 2 paths (absolute path to the fpc binary and relative path of ppc compiler) then the fpc binary can be queried to set

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread patspiper
On 22/08/13 16:23, Mark Morgan Lloyd wrote: patspiper wrote: When multiple FPC versions are used, the fpc binary and related utilities are usually located in fpc folder/fpc version/bin, and the compiler itself (ppcxxx) in fpc folder/fpc version/lib/fpc/fpc version. The folders could be

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread Henry Vermaak
On Thu, Aug 22, 2013 at 05:12:04PM +0300, patspiper wrote: On 22/08/13 16:23, Mark Morgan Lloyd wrote: I usually add a couple of symlinks in /usr/local/bin e.g. ppcsparc - ppcsparc-2.6.2 and ppcsparc-2.6.2 - /usr/local/lib/fpc/2.6.2/ppcsparc. The fpc binary will be the one installed by the

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread patspiper
On 22/08/13 17:26, Henry Vermaak wrote: On Thu, Aug 22, 2013 at 05:12:04PM +0300, patspiper wrote: On 22/08/13 16:23, Mark Morgan Lloyd wrote: I usually add a couple of symlinks in /usr/local/bin e.g. ppcsparc - ppcsparc-2.6.2 and ppcsparc-2.6.2 - /usr/local/lib/fpc/2.6.2/ppcsparc. The fpc

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread Mark Morgan Lloyd
patspiper wrote: On 22/08/13 16:23, Mark Morgan Lloyd wrote: patspiper wrote: When multiple FPC versions are used, the fpc binary and related utilities are usually located in fpc folder/fpc version/bin, and the compiler itself (ppcxxx) in fpc folder/fpc version/lib/fpc/fpc version. The

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread patspiper
On 22/08/13 19:36, Mark Morgan Lloyd wrote: I started off with a standard FPC binary installation circa 2.0, this put the utilities in /usr/local/bin ** . Since then I've generally built from source- in many cases I've had to since there wasn't an up-to-date binary- and I've never had to

Re: [Lazarus] Proposal for changing fpc version on the fly in the IDE

2013-08-22 Thread Mark Morgan Lloyd
patspiper wrote: On 22/08/13 19:36, Mark Morgan Lloyd wrote: I've never seen any suggestion that this breaks backwards compatibility, and if it does it should probably be raised as a bug- at least so that it can be documented properly. In any event, as long as fpc (etc.) knows what