Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2020-02-20 06:45:43


I am working on a new compiler toolset, call it X, which uses another
toolset, call it Y, to compile/link in order to build the same type of
targets. The only the slight differences between toolset X and toolset Y
is centered on the fact that toolset X has its own header files and
standard library, whereas toolset Y normally used the header files and
standard libraries of anothewr toolset Z. I am a little bit hazy on how
toolset inheritance works to achieve what I want to do. I understand I
can use the toolset.inherit_generators, toolset.inherit_rules and the
toolset.inherit_flags to inherit these things from Y to X. What I do not
understand is how to change something toolset X inherits from toolset Y,
such as a rule, with its actions, or a flag.

Do I just place X's own version of a toolset rule and/or its action in
toolset X's jamfile to override what is inherited from tollset Y ? If so
can I replace either the rule or its action independently of each other.

Do I just specify X's own toolset.flags invocation in X's jamfile to
override some flag X inherited from Y ?

Any help to understand how I can do this would be appreciated.


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