You'd have to encode that information inside the version, like:

   using gcc : 5.2-cpp11 ;

Though, why would not use features for that? E.g.:

   feature std : optional composite : cxx11 ;
    feature.compose : <std>cxx11 : <cxxflags>whatever ;

?

We probably need to add such feature in the base system.


On Mon, Sep 28, 2015 at 10:49 PM Stefan Seefeld <stefan@seefeld.name> wrote:
On 28.09.2015 15:43, Vladimir Prus wrote:
> On 25-Sep-15 6:32 PM, Stefan Seefeld wrote:
>> On 25.09.2015 11:16, Vladimir Prus wrote:
>>>
>>> Stefan,
>>>
>>> This is described at
>>>
>>> http://www.boost.org/build/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.gcc
>>>
>>>
>>> Could you check whether it answers your questions?
>>>
>>
>> Thanks, that's indeed a good starting point. (A reference to that
>> section from within the Getting Started guide or the tutorial might be
>> useful.)
>>
>> However, this still doesn't entirely answer my question. If I have
>> multiple such lines in my user-config.jam file, by what means can I
>> select via command-line options which one I want ? As all of those lines
>> have to start with 'gcc', I don't see an alias that I could use in `bjam
>> toolset=<alias>`, or some other command-line option.
>
> You can use:
>
>     b2 toolset=gcc-<version>
>
> Where <version> is either the parameter you've passed to 'using', like:
>
>     using gcc : 5.2 : /home/ghost/local/bin/g++ ;
>
> or the actual version of gcc, e.g. given:
>
>     using gcc :  : /home/ghost/local/bin/g++ ; # assuming this is gcc 5.2

Thanks, but I think that isn't quite enough, as the new toolset I want
to add and the default one have the same version.
All I'm trying to do is add a variant that uses non-default command-line
arguments (such as -std=c++11).

Thanks,
    Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build