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

HTH,

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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