
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