From: Boris Gubenko (Boris.Gubenko_at_[hidden])
Date: 2007-11-19 12:35:34
[ feature.get-values architecture : $(condition) ] in ia64
on HP-UX ia64 and PA-RISC revealed that it evaluates to TRUE on both
What could be the reason?
----- Original Message -----
From: "Rene Rivera" <grafikrobot_at_[hidden]>
Sent: Monday, November 19, 2007 10:54 AM
Subject: Re: [boost] [python] patch for python.jam for setting suffix onHP-UX
> David Abrahams wrote:
>> on Mon Nov 19 2007, "Boris Gubenko" <Boris.Gubenko-AT-hp.com> wrote:
>>> 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 ;
>>>> 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?
>> Whichever is appropriate for your use case. The former represents the
>> target architecture of the compiler and the latter represents the OS
>> that bjam is being run on. I suspect you want the former.
> I guess I wasn't clear... Using "architecture" in this case is preferred
> because it is operating on a build product. To allow for cross-compiles
> it is not advisable to rely on system runtime values like '[ os.platform ]'.
> -- 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