[Lazarus] $(TargetOS) and {$I %FPCTARGETOS%} result NOT equal on linux

FreeMan freeman35 at delphiturkiye.com
Mon Aug 11 15:42:56 CEST 2014


last lazarus & fpc svn
Kubuntu 14.04 x64
In project option,
Target file name (-0): apps/Myproject_$(TargetOS) result is 
"*Myproject_linux*"
In code:
...
S := Format('%s_%s.zip', ['*Myproject_*', {$I %FPCTARGETOS%}]); result 
is "*Myproject_Linux*"

os linux is case sensitive, so first char "L" is different and lazarus 
macro and fpc variable

/opt/lazarus/components/codetools/definetemplates.pas 2780:8

function GetCompiledTargetOS: string;
begin
   Result:=Result:=lowerCase({$I %FPCTARGETOS%});
end;

why lazarus change to lowerCase fpc constant ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140811/3acb9fda/attachment-0002.html>


More information about the Lazarus mailing list