Boost logo

Boost :

From: Martin Wille (mw8329_at_[hidden])
Date: 2004-08-27 10:46:19


David Abrahams wrote:

> Why don't you set up your mingw-3.4.1 toolset to use a different
> variable?
>
> {
>
> local MINGW_ROOT = MINGW341_ROOT ;
> extends-toolset mingw ;
> }
>

I'm under the impression this is not possible for all
variables. E.g. I have toolsets which modify PYTHON_ROOT
or BUILD. Those apparently can't be local variables.

Worse, if I want to append to those variables, I have
to protect against multiple appending since the toolset
contents are executed for each target.

(The file also is being reread for each target, btw, resulting
in >1000 open/read/close operations for the toolset file)

e.g. my intel-7.1-stdlib-native-linux toolset looks:

{
     local INTEL_LINUX_VERSION = "70" ;
     local INTEL_LINUX_ROOT = "/usr/local/icc-7.1/compiler70" ;
     PYTHON_ROOT = "/usr/local/Python-2.2.3-intel" ;
     if ! $(gAddStdlibOption)
     {
         BUILD += "<stdlib>default" ;
         gAddStdlibOption = 1 ;
     }
     extends-toolset intel-linux ;
}

(I use only one toolset at a time.)

Regards,
m


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk