|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-03 10:16:52
"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.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
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