Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-07-05 02:40:35


David Abrahams wrote:
> "Reece Dunn" <msclrhd_at_[hidden]> writes:
> > This kind of thing is also needed for the Metrowerks CodeWarrior toolset,
> > so I ask this:
> >
> > Can the prefix detection code be moved over to a Jamfile like prefix.jam
> > that will work for msvc and mwcw and any other tools that require prefix
> > detection. This would mean that it would be easier to support additional
> > tools (rc, midl, etc) on these platforms. It would be something like:
> >
> > rule get-prefix ( toolset : version ? : path ? )
> > {
> > if $(path) return ... ;
> > if $(toolset) = "msvc" return ... ;
> > if $(toolset) = "mwcw" return ... ;
> > return "" ; # empty string to support other toolsets
> > }
>
> Please, no! MSVC-specific code should stay in the msvc toolset;
> MWCW-specific code should stay in the cw toolset.

I, too, believe that things that are really specific to msvc should be in
msvc.jam.

However, at least one thing can be improved: the code which prepends the
"suffix" to invocation command is the same both in msvc and your new cw
toolset. I guess it can be refactored into "common.join-commands' or
something like that? Would you be interested in sending a patch? ;-)

- 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