<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
last lazarus & fpc svn <br>
Kubuntu 14.04 x64<br>
In project option,<br>
Target file name (-0): apps/Myproject_$(TargetOS) result is "<b>Myproject_linux</b>"<br>
In code:<br>
...<br>
S := Format('%s_%s.zip', ['<b>Myproject_</b>', {$I %FPCTARGETOS%}]);
result is "<b>Myproject_Linux</b>"<br>
<br>
os linux is case sensitive, so first char "L" is different and
lazarus macro and fpc variable<br>
<br>
/opt/lazarus/components/codetools/definetemplates.pas 2780:8 <br>
<br>
function GetCompiledTargetOS: string;<br>
begin<br>
Result:=Result:=lowerCase({$I %FPCTARGETOS%});<br>
end; <br>
<br>
why lazarus change to lowerCase fpc constant ?<br>
</body>
</html>