Boost logo

Boost-Build :

From: Ilya Sokolov (fal_delivery_at_[hidden])
Date: 2008-07-30 07:30:10


Markus Schöpflin пишет:
> Ilya Sokolov wrote:
>> Jurko Gospodnetić wrote:
>>> [snip]
>>>
>>> The problem here is that the Boost Build toolset.flags rule does
>>> not allow specifying flag values that consist fixed text values with
>>> embeded values read from the related property value. To achieve what
>>> you want look at how the gcc and qcc toolset do it. They add a
>>> separate flag
>>> whose value is just the property value and when they use it in an
>>> action they prepend what is needed to it.
>>>
>>> In your case you'll most likely need something like this:
>>>
>>> toolset.flags hp_cxxcompile.c++ TEMPLATE_DEPTH <c++-template-depth> ;
>>> feature.set-default c++-template-depth : 64 ;
>>
>> The last line will override default value for all configured toolsets (.
>
> So the default doesn't belong into the toolset files but somewhere else,
> probably where the feature is defined?

Yep

> Why not leave out the default completely?

Why not use <cxxflags> instead of <c++-template-depth> as the value is
toolset-dependent anyway?

> Markus
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build


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