List Info

Thread: V1 --> V2 command line conversion




V1 --> V2 command line conversion
country flaguser name
United States
2007-09-19 16:49:02
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?

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. ; I really
would prefer to specify the compiler command on the bjam command line.

I would appreciate any suggestions.  Thanks.
 



Ryan Melville



Ryan Melville

Sr. Principal Engineer 
Xiotech Corporation
Ryan_MelvilleXiotech.com?subject=Xiotech">Ryan_MelvilleXiotech.com
952 983 2603 (Office)
952 983 3001 (Fax)
www.xiotech.com : Toll-Free 866 472 6764    
Xiotech.com" TARGET="_new">Xiotech Website



Re: V1 --> V2 command line conversion
country flaguser name
United States
2007-10-02 21: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-cons
ulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )