Boost logo

Boost-Build :

Subject: Re: [Boost-build] Extending toolset.flags in gcc.jam
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-04-27 02:52:17

On Thursday, April 14, 2011 23:11:14 tr1gun wrote:
> Hello,
> is it possible to extend the toolset.flags in gcc.jam or is the only
> possible solution to add it to buildin.jam? What i want to achieve is to
> switch the c++ standard from default to c++0x.
> At the moment i have added to:
> buildin.jam:
> feature.feature c++std : default cpp0x : symmetric propagated ;
> gcc.jam:
> toolset.flags gcc.compile OPTIONS <c++std>cpp0x : -std=c++0x ;

You can put both definition into your own file, but you need to make
use of the 'unchecked' parameter to 'flags' to indicate you really
really want to add flags to a different module, e.g:

        toolset.flags gcc.compile OPTIONS <c++std>cpp0x : -std=c++0x : unchecked ;

Of course, this will fail should these changed be ever integrated into gcc.jam


Vladimir Prus

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at