Boost logo

Boost-Build :

Subject: Re: [Boost-build] toolset requirement
From: Deane Yang (deane.yang_at_[hidden])
Date: 2008-12-06 10:39:02


Juergen,

Thanks for the help.

Juergen Hunold wrote:
> On Saturday 06 December 2008 07:21:20 Deane Yang wrote:
>> Should it be possible in a Jamfile to do something like this:
>>
>> project
>>
>> : requirements
>>
>> <os>NT:<toolset>gcc
>> ;
>
> I'm not sure. I'd prefer
>
> <target-os>windows:<toolset>gcc
>
> instead. This works for cross-compilation, too.

Good idea.

>
> You have to configure gcc on windows. Auto-detection only enables msvc on this
> platform. If gcc is in your PATH, simply adding "using gcc ;" to your using-
> config.jam should do the trick.
>

Actually, I only want to force the use of gcc for one particular
project. So I have already configured both msvc and gcc. And the project
in question compiles nicely if I do "bjam toolset=gcc". But I'd like it
to use gcc if I just do "bjam", while other projects would continue to
use msvc.

Deane


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