Boost logo

Boost-Build :

Subject: Re: [Boost-build] toolset requirement
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-12-06 03:50:17


Hi Deane !

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.

> In other words, force the use of gcc when building on Windows.

Interesting idea.

> I tried this, but got a message saying that this was an invalid value
> for toolset and the only valid value was msvc. What could cause this?

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.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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