|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-11-19 09:49:59
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.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk