> 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 program. Peter _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel