Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2007-10-02 22:32:31


on Wed Sep 19 2007, "Melville, Ryan" <Ryan_Melville-AT-Xiotech.com> wrote:

> Hi,
>
> With V1, I used the following command line from my own Makefile to build
> boost:
>
> @bjam -d1 "-sTOOLS=gcc" "-sGCC=$(CC_OPT)" "-sGXX=$(CXX_OPT)"
>
> With V2, I realize I must replace the "-sTOOLS=gcc" with --toolset=gcc and
> have done so.
>
> But, my other -s usage seems to have lost its desired effect. I used to
> override the gcc and g++ commands with my own but now I can tell (using -d2)
> that bjam is using "g++" and not my variant.
>
> How can I get this "override the compiler command on the bjam command line"
> behavior back? Did the variable names change?

You can't do it with variables.

> I've read all about the "using" thing in the config files but I don't think
> that will work for me. I don't know the command until the moment of bjam
> invocation and so can't put them in a config file ahead of time.

Then write the config file on demand, just before invoking bjam.

> I really would prefer to specify the compiler command on the bjam
> command line.

I think you don't have that option.

-- 
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