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

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Aug 12 12:26:08 CEST 2014


On Mon, 11 Aug 2014 16:42:56 +0300
FreeMan <freeman35 at delphiturkiye.com> wrote:

>[...]
> 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*"
>[...]
> why lazarus change to lowerCase fpc constant ?

The TargetOS macro is used for file paths. To avoid case sensitivity problems the
macro is always lowercase.

Mattias




More information about the Lazarus mailing list