[fpc-devel] programmers guide 2.6 issue

John Lee johnelee0 at gmail.com
Wed Jan 8 16:05:25 CET 2014


Thanks - I'd thought that I'd seen somewhere (here?) that one could get the
opt info into compiler string somehow & thought it'd be there hence so doc
. Maybe it is somewhere else & not under {I ...}?


On 8 January 2014 13:35, Pierre Free Pascal <pierre at freepascal.org> wrote:

>   Hi John,
>
>   in the scanner.pas unit
> procedure dir_include,
> code starting around line 2324 on current trunk,
> you can see that there are only a few special
> names allowed.
>   If there is no match, the compiler looks for
> an environment string with that name.
>
>   This might be the solution for your problem...
>
> Otherwise you can try to submit a patch
> adding such an option.
>
> Pierre
>
>
> > -----Message d'origine-----
> > De : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> > bounces at lists.freepascal.org] De la part de John Lee
> > Envoyé : mercredi 8 janvier 2014 14:21
> > À : FPC developers' list
> > Objet : [fpc-devel] programmers guide 2.6 issue
> >
> > In Pascal programmers guide v2.6 Feb 2013 it explains how to use {$I
> > ... } to include compiler information eg version string, time string
> > etc so one can include eg in a  writeln, but it does not mention not
> > the optimisation level at which program was compiled.
> >
> > Is this an omission or is this info elsewhere? If so where 7 how do I
> > do it please?
> >
> > TIA
> >
> > John
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140108/f11111ef/attachment.html>


More information about the fpc-devel mailing list