|
Boost-Build : |
Subject: Re: [Boost-build] howto define my own toolset
From: Vladimir Prus (vladimir.prus_at_[hidden])
Date: 2015-09-28 15:43:17
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,
Volodya
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