Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2019-07-23 12:23:58


On 7/23/2019 6:17 AM, Steven Watanabe via Boost-build wrote:
> AMDG
>
> On 7/22/19 8:17 PM, Edward Diener via Boost-build wrote:
>> If I have on Windows in my user-config.jam
>>
>> import toolset ;
>> using clang-win : 8.0 : E:/programming/bat/cp_clangwin80.bat : etc. ;
>> using clang : 8.0 : E:/programming/bat/cp_clang80.bat : etc. ;
>>
>
> Flip the order. `using clang` is the same as `using clang-linux`
> The first one listed is the default.
>

Ok, thanks ! But why does a 'default' matter when the two toolsets above
are different ?

Does not that mean that if I flip them that 'b2 toolset=clang-win-8.0'
chooses the 'clang' toolset over the 'clang-win' toolset if the first
one listed is the default from what you are saying ? This is not what I
want.

Like I said if I change the 'clang' toolset definition to 'clang-linux',
then invoking 'b2 toolset=clang-linux' or 'b2 toolset=clang-win' chooses
the correct toolset, but I do not understand why it should not work as
above. I guess I hate to have to type the extra letters of 'clang-linux'
as opposed to just 'clang' when it seems it should work as is.

>> and my invoocation is:
>>
>> b2 toolset=clang-8.0 somejam.jam
>>
>> the clang-win toolset is chosen to compile/link the tests in somejam.jam
>> instead of the clang toolset. I realize I can solve this by changing the
>> clang toolset to clang-linux, and then invoking b2 as:
>>
>> b2 toolset=clang-linux-8.0 somejam.jam
>>
>> but why should I have to do this ?
>>
>> If I just have in my user-config.jam
>>
>> import toolset ;
>> using clang : 8.0 : E:/programming/bat/cp_clang80.bat : etc. ;
>>
>> then
>>
>> b2 toolset=clang-8.0 somejam.jam
>>
>> does use the toolset I have.
>>


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