On Mon, 2008-03-31 at 11:40 +0200, Joachim Lingner wrote:
> This platform cannot be obtained currently using the bootstrap API, for 
> example:
>       
>                  OUString os( RTL_CONSTASCII_USTRINGPARAM("$_OS") );
>                  ::rtl::Bootstrap::expandMacros( os );
> 
> We use $_OS and $_ARCH to obtain platform information. 

> Possible values 
> are defined in rtl/source/macro.hxx. ppc64 is currently not support.

True, ppc64 is detected in that list as simply "ppc" with no
distinction from ppc32, which is the same situation as the 32bit s390
vs 64bit s390x. And the two different ABIs possibilities for arm are
both simply recorded as ARM and also both the endian variants for MIPS
are not distinguished between in macro.hxx

It was never previously a problem from the point of view that it wasn't
necessary to distinguish between them in sal to successful build OOo. 
With the other sizeof(long) stuff taking care of the 32bit/64bit
differences and build-time logic selecting which uno bridge to build.

> Are s390x arm_eabi, arm_oabi, mips_el, mips_eb names for particular CPU 
> types? If so, then the bootstrap API should be extended accordingly.

Well the eabi vs oabi are two different ABIs that are possible for ARM,
with the eabi being the new one. The CPU is the same, but most distros
basically treat them as two different CPUS. If it is important then I
can clean up the macros.hxx to enumerate explicitly and distinguish
binary incompatible platforms from each other so there's a unique
THIS_ARCH for each.

> However, currently we  could add
> linux_arm
> linux_mips

btw, where do these get added ? Are they being added e.g. to some sort
of "these are the extensions available for your platform" section of a
website ?

C.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to