Boost logo

Boost-Build :

Subject: Re: [Boost-build] [build] Linking conditionally depending of a compiler version
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-05-13 04:16:19


Le 13/05/12 02:18, Steven Watanabe a écrit :
> AMDG
>
> On 05/12/2012 06:45 AM, Vicente J. Botet Escriba wrote:
>> <snip>
>> if !<toolset>vacpp in $(properties)
>> {
>> result +=<library>/boost/chrono//boost_chrono ;
>> }
>>
>> Unfortunately/fortunately more recent versions of the compiler supports
>> in an acceptable way Boost.Chrono.
>>
>> If I do always
>>
>> result +=<library>/boost/chrono//boost_chrono ;
>>
>> No test will work for vacpp 10.1, which is not desirable.
>>
>> I would like to don't link with Boost.Chrono only for the failing
>> version. Is there a way to achieve this with Boost.Build?
>> How to know the version of the compiler is a Jamfile?
>>
> Test for<toolset-vacpp:version>10.1 (or
> whatever the version you need is).
>
>
Thanks,
Vicente


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk