Boost logo

Boost :

From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2007-11-19 09:31:03


Rene Rivera wrote:
> Looking at more of the context of python.jam what you want is to select
> based on the <architecture> feature. Something like:
>
> if ! [ feature.get-values architecture : $(condition) ] in ia64 ||
> [ feature.get-values python : $(condition) ]
> in 1.5 1.6 2.0 2.1 2.2 2.3 2.4
> {
> suffix = sl ;
> }
> else
> {
> suffix = so ;
> }

I can use '! [ feature.get-values architecture : $(condition) ] in ia64'
or I can use '[ os.platform ] != IA64' (I tested the latter during the
weekend). Which one is preferable?

> I notice though that we don't have pa-risc in the set of architectures:
> [...]
> I can add in "hppa" or "parisc". Or do you prefer something else?
> Similar question for the instruction-set feature. I can add in
> "pa-risc-1-0", "pa-risc-1-1", and "pa-risc-2-0". Or do you prefer a
> different nomenclature?

Thank you for the proposal! I think, "parisc" as an architecture is fine.
For now, we can test PA-RISC as not ia64, but what if HP-UX is ported to a
different architecture? :-)

As for the instruction-set, I'm not sure how it is used. Why would we need
"pa-risc-1-0", pa-risc-1-1" and "pa-risc-2-0" instead of a single name?

Also, while we are at it: can we define OSPLAT for PA-RISC in jam.h:

# if defined( __hpux ) && defined( __hppa )
# define OSPLAT "OSPLAT=PARISC"
# endif

If there are no objections, I can make this change in the trunk.

Thanks again,
  Boris

----- Original Message -----
From: "Rene Rivera" <grafikrobot_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, November 18, 2007 2:22 PM
Subject: Re: [boost] [python] patch for python.jam for setting suffix onHP-UX

> Boris Gubenko wrote:
>> David Abrahams wrote:
>>> I don't think this is really the recommended way to determine the
>>> platform, is it? Could you check with Volodya?
>>
>> I "stole" it from tools/build/v2/util/os.jam :
>>
>> .platform = [ modules.peek : OSPLAT ] ;
>>
>> I need to distinguish two different architectures of HP-UX: ia64 and
>> PA-RISC.
>
> Looking at more of the context of python.jam what you want is to select
> based on the <architecture> feature. Something like:
>
> if ! [ feature.get-values architecture : $(condition) ] in ia64 ||
> [ feature.get-values python : $(condition) ]
> in 1.5 1.6 2.0 2.1 2.2 2.3 2.4
> {
> suffix = sl ;
> }
> else
> {
> suffix = so ;
> }
>
> I notice though that we don't have pa-risc in the set of architectures:
>
> # Type of CPU architecture to compile for.
> feature architecture :
> # x86 and x86-64
> x86
> # ia64
> ia64
> # Sparc
> sparc
> # RS/6000 & PowerPC
> power
> # MIPS/SGI
> mips1 mips2 mips3 mips4 mips32 mips32r2 mips64
> #
> : propagated optional ;
>
> I can add in "hppa" or "parisc". Or do you prefer something else?
> Similar question for the instruction-set feature. I can add in
> "pa-risc-1-0", "pa-risc-1-1", and "pa-risc-2-0". Or do you prefer a
> different nomenclature?
>
>
> --
> -- Grafik - Don't Assume Anything
> -- Redshift Software, Inc. - http://redshift-software.com
> -- rrivera/acm.org - grafik/redshift-software.com
> -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk