Boost logo

Boost-Build :

Subject: Re: [Boost-build] Use of alias to not build a toolset is not working
From: Edward Diener (eldiener_at_[hidden])
Date: 2012-10-29 22:50:10


On 10/28/2012 11:34 PM, Steven Watanabe wrote:
> AMDG
>
> On 10/28/2012 07:33 PM, Edward Diener wrote:
>> As explained to me by Steve Watanabe, I can keep from having a toolset
>> execute targets as defined by an alias through target alternatives. But
>> when I tried it, it did not work with the latest Boost Build. In a jam
>> file I have:
>>
>> alias ttivm16 : :
>> <toolset>gcc-3.4.5
>> ;
>>
>> alias ttivm16
>> :
>> [ run test_vm_has_template_cp.cpp : : :
>> <define>BOOST_TTI_VERSION_1_6
>> <define>BOOST_PP_VARIADICS=1 ]
>> ;
>>
>> Yet when I ran:
>>
>> bjam toolset=gcc-3.4.5 ttivm16
>>
>> The test_vm_has_template.cpp target is compiled and run.
>>
>
> I think I know what the problem is.
>
> Try <toolset>gcc <toolset-gcc:version>3.4.5.
> (I believe that <toolset>gcc-3.4.5 is not
> expanded correctly in the context of target
> alternative selection)

Your syntax worked. Is it a bug that <toolset>gcc-3.4.5 does not work
for target alterantive selection, while it works in other contexts ?


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