Re: [fpc-pascal] Compiler flag define or $IFOPT for optimizations

2022-06-03 Thread Tomas Hajny via fpc-pascal
On 2022-06-03 14:41, Benito van der Zander via fpc-pascal wrote: Hi, However, you can possibly solve it by always taking the options from an environment variable to the command line and then including contents of this command line to your sources. Unfortunately it is picking up all kinds of

Re: [fpc-pascal] Compiler flag define or $IFOPT for optimizations

2022-06-03 Thread Benito van der Zander via fpc-pascal
Hi, However, you can possibly solve it by always taking the options from an environment variable to the command line and then including contents of this command line to your sources. Unfortunately it is picking up all kinds of options from fpc.cfg and Lazarus. Like in this case, I tried to

Re: [fpc-pascal] Compiler flag define or $IFOPT for optimizations

2022-05-28 Thread Tomas Hajny via fpc-pascal
On 2022-05-28 13:44, Benito van der Zander via fpc-pascal wrote: Hi, I want to show how my program was compiled. Now I have string like "FPC3.2.2 i386-Linux R+C+" from compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE %FPCTargetCPU%}+'-'+{$INCLUDE %FPCTargetOS%}+ ' ' + {$IfOpt

[fpc-pascal] Compiler flag define or $IFOPT for optimizations

2022-05-28 Thread Benito van der Zander via fpc-pascal
Hallo, I want to show how my program was compiled. Now I have string like "FPC3.2.2 i386-Linux R+C+" from   compiler := 'FPC' + {$INCLUDE %FPCVERSION%} + ' ' + {$INCLUDE %FPCTargetCPU%}+'-'+{$INCLUDE %FPCTargetOS%}+ ' ' + {$IfOpt R+}+'R+'{$endif} {$IfOpt S+}+'S+'{$endif} {$IfOpt O+}+'O+'{$e