Boost logo

Boost-Build :

Subject: [Boost-build] Extending toolset.flags in gcc.jam
From: tr1gun (tr1gun_at_[hidden])
Date: 2011-04-14 15:11:14


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 ;

Another problem i have encoutered is the c++std feature only work if i
add it to the command line and not if i set it in the user-config for
gcc. Shouldn't it be possible to write using gcc : : : <c++std>cpp0x ; ?

Best regards,

Bernhard


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