Boost logo

Boost Users :

Subject: Re: [Boost-users] Specifying Compiler when invoking bootstrap.sh
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2018-08-11 15:39:10


On Sat, 11 Aug 2018, 15:32 Chris Glover via Boost-users, <
boost-users_at_[hidden]> wrote:

> On Tue, 7 Aug 2018 at 09:48 Michalke, Simon via Boost-users <
> boost-users_at_[hidden]> wrote:
>
>> Hello all,
>>
>> simple question:
>> How do I specify the compiler that will be used to compile boost
>> directly? I would like to provide the whole path.
>>
>> I have a big CMakeProject that depends on Boost. And boost should be
>> preferably build with the same Compiler.
>>
>> Regards,
>> Simon
>>
>
> I don't understand your reason for doing this. As far as I know,
> bootstrap.sh just builds the b2 executable, which can then invoke any
> toolset to actually build boost. So, what you bootstrap with is irrelevant
> to what you actually build boost with
>

Yes, but not quite.
The bootstrap script also generates .jam configs which predefined the
detected toolset as default, so it does affect Boost libraries build unless
user is aware of such details of the process

https://github.com/boostorg/boost/blob/master/bootstrap.sh#L344

Mateusz Loskot, mateusz_at_[hidden]
(Sent from mobile)



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net