Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost build failed if custom toolset path is not available
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-02-24 15:01:25


On 2/23/2016 9:35 PM, Steven Watanabe wrote:
> AMDG
>
> On 02/17/2016 12:49 AM, marfro wrote:
>>
>> I am successfully compiling the boost library (1_46_0) for msvc and for gcc.
>>
>> For gcc I use a custom toolset path. Therefore I created an entry in the
>> user-config.jam file. If that path is not available the whole boost build
>> files even when I build it only for msvc.
>>
>> After enabling the debug information I see that the build process
>> initializes and checks all using statements of the user-config.jam file. Why
>> is that necessary, since I already named the toolset on the bjam call?
>>
>> Does anybody know if I can avoid this behaviour so the build still be
>> successfull even though the path is missing?
>>
>
> It used to be that this was required to work,
> and it still does with some tools, just not gcc.
> The easiest workaround is to check whether the
> path exists:
>
> import path ;
> if [ path.exists /path/to/g++ ]
> {
> using gcc : /path/to/g++ ;
> }

The larger issue, which I have made in the past on this mailing list, is
that Boost build "executes" a "using xxx" even when the xxx toolset is
not being used in any way. If it waited until toolset xxx was actually
being used before "executing" a "using xxx" Boost build would be much
faster and much simpler to use for the end-user. Is it really too much
work to make this change in the Boost build logic ?


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