Vincent Snijders wrote:
Darius Blaszijk schreef:
Do we need to use a "Case Installer.OS of" construct or can we implement$(CPU_TARGET) and $(OS_TARGET) as functions that return a string with the current targets?

I would say just replace the macros with {$I %FPCTARGETOS%} and {$I %FPCTARGETCPU%} but how do others feel?

I think that won't work for cross compilation. It returns the targetos where fpmake s running, not the targetos you want to compile too.

Are you shure? I mean once you have cross compiled the compiler, rtl and the lot using FPCTARGETOS or FPCTARGETCPU would yield the right information for that given compiler and rtl and the lot, not? Or do they give the actual system information? (which does not seem logical)

Darius
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to