Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-01-08 08:39:22


David Abrahams wrote:
> David Abrahams <dave_at_[hidden]> writes:
>
>
>>>- we'd need some flags inheritance as we've discussed
>>
>>Not done yet.
>
>
> Having looked at this some more, I'm not convinced that we have any
> good idea for the interface, and I also don't know how to approach
> implementing it. We'll need some more discussion.

What we need is some concrete use cases of toolset inheritance.
Well, to begin with, it's possible to have some common.jam, with

toolset.flags common.compile DEFINES <define> ;

then gcc.jam would say

tolset.inherit-flags common ;

to reuse the first flags declaration. Looking at the V1 cwpro8-tools.jam, it
seems like in V2 it would contain:

toolset.inherit-flags metrowerks ;

In the second case we'd also need to inherit the rules/actions. Maybe, there
should be

toolset.inherit metrowerks ;

which would bring everything (rules + actions + flags)?

- Volodya

 


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