Boost logo

Boost-Build :

Subject: Re: [Boost-build] Mixing toolsets
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-30 15:06:16


AMDG

On 03/30/2011 12:00 PM, Bo Jensen wrote:
> On Wed, Mar 30, 2011 at 6:37 PM, Steven Watanabe<watanabesj_at_[hidden]> wrote:
>> 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 ;
>>
>
> 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.
>

That's supposed to work.

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

if

using gcc : ... ;
using intel : ... ;

doesn't just work, then it's probably a bug.
What exactly are the contents of your user-config.jam?

In Christ,
Steven Watanabe


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