Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-11-19 10:54:00


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 ;
>>> }
>>> 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?
>
> 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

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