[fpc-pascal] Compiler flag define or $IFOPT for optimizations
Benito van der Zander
benito at benibela.de
Sat May 28 13:44:31 CEST 2022
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+'{$endif}
{$IfOpt Q+}+'Q+'{$endif} {$IfOpt M+}+'M+'{$endif} {$IfOpt C+}+'C+'{$endif};
But the optimization level (-O2 or -O1 ...) is missing.
Is there an IFOPT for that? Or a define with all the arguments
Bye,
Benito
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220528/e7339764/attachment.htm>
More information about the fpc-pascal
mailing list