Boost logo

Boost :

Subject: Re: [boost] C++11 variant of the gcc toolset?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-12-14 12:02:58


AMDG

On 12/14/2013 08:23 AM, Peter Dimov wrote:
> Marshall Clow wrote:
>> I have this in in user-config.jam:
>>
>> using darwin : 11
>> : "/Sources/gcc/gcc-4.8.2/bin/bin/g++"
>> : <cxxflags>"-std=c++11"
>> ;
>>
>> And I just use:
>> b2 toolset=darwin-11
>
> This works, but it's not as convenient as having a separate gcc11
> toolset. Currently, toolset=gcc finds whatever g++ there is in the PATH,
> and automatically detects its version, so for instance, if I have g++
> 4.5.3, it puts the compiler output into a gcc-4.5.3 directory, and if I
> then run b2 with g++ 4.8.1 in the PATH, it can see that the previous
> test run is not the same, so it re-runs the tests, putting the result
> into a gcc-4.8.1 directory. Which is exactly what I want. Ideally, the
> C++11 mode tests would go into gcc11-(detected version), for the same
> reason.
>

import feature ;
feature.feature cxx11 : on : optional composite propagated ;
feature.compose <cxx11>on : <toolset>gcc:<cxxflags>-std=c++11 ;

b2 gcc cxx11=on

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk