[fpc-devel] Fpc Target directory function

Peter Vreman peter at freepascal.org
Mon Jan 28 08:43:50 CET 2008

> Does a function like this exist:
> function FpcTargetDir: string;
> begin
>   result:= {$I %FPCTARGETCPU%}+'-'+{$I %FPCTARGETOS%};
> end;
> Above works for my needs, just wonder if something already exists in RTL
> or if it should be added for convenience.

It doesn't exists and i don't see a reason why it should be added. The above line is simple. And
there is no generic rule that says that you need to encode TargetDir like cpu-os for every


More information about the fpc-devel mailing list