Boost logo

Boost-Build :

Subject: Re: [Boost-build] Mixing toolsets
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-03-30 15:00:03


On Wed, Mar 30, 2011 at 6:37 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> On 03/30/2011 11:24 AM, Bo Jensen wrote:
>>
>> Is it possible to use different toolsets on targets within a project ?
>>
>> Here is what I want to do :
>>
>> 1) Build some library wit say gcc
>> 2) Link the lib from 1) into another target, but now build with intel
>>
>> I realize you can specify toolset in properties, but when I do that,
>> it will build all dependencies with the specified toolset, which
>> clearly is not what I want.
>>
>> Any hint to how to do it or other jam files doing the same,much
>> appreciated.
>>
>
> Does it work if you specify gcc in the requirements
> of the library and intel in the requirements of
> the other target?
>
> lib mylib : mylib.cpp : <toolset>gcc ;
> exe test : test.cpp mylib : <toolset>intel ;
>
> In Christ,
> Steven Watanabe
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>

Thanks Steven, that lead me in the right direction. Above should work
just fine, the real problem is me not understanding how the syntax for
specifying multiple toolsets.

Here is what I thought was correct (but is not) :

Define multiple using statements in my user-config.jam, so both gcc
and intel-linux is defined.

But if gcc is not defined first then it fails :

gcc.compile.c++ bin/gcc/release/address-model-32/threading-multi/sulumnetc.o
/bin/sh: -ftemplate-depth-128: not found

Clearly the toolset is not set up properly and I am sure it's my
fault, how should I set the toolset up in my user-config.jam ?


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