How should I fix the default b2 compiler to be MSVC 14.2?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How should I fix the default b2 compiler to be MSVC 14.2?

Boost - Build mailing list
How should I fix the default b2 compiler to be MSVC 14.2?

I have both MSVC 2017 14.1 and 2019 14.2 configured.

https://boostorg.github.io/build/manual/develop/index.html#bbv2.reference.tools.compilers

says that by default, the most recent registry entry will be called,  but seems to be 14.1 at present.

How should I ensure that when I call b2 that *by default* the VS 2019 14.2 version is used ?

(I’d rather not have to call with toolset=msvc-14.2 each time – I’m bound to forget )

Of course, I also want to be able to b2 toolset=msvc-14.1,msvc14.2, gcc-8.1.0 ..

Thanks

Paul


Paul A. Bristow

Prizet Farmhouse

Kendal, Cumbria

LA8 8AB           UK






_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: How should I fix the default b2 compiler to be MSVC 14.2?

Boost - Build mailing list
AMDG

On 5/31/19 7:25 AM, Paul A Bristow via Boost-build wrote:
> I have both MSVC 2017 14.1 and 2019 14.2 configured.
>
> https://boostorg.github.io/build/manual/develop/index.html#bbv2.reference.tools.compilers <https://boostorg.github.io/build/manual/develop/index.html>
>
> says that by default, the most recent registry entry will be called,  but seems to be 14.1 at present.
>

Did you configure it in user-config.jam?  If you
did, then the first version to be initialized is
the default.

> How should I ensure that when I call b2 that *by default* the VS 2019 14.2 version is used ?
>
> (I’d rather not have to call with toolset=msvc-14.2 each time – I’m bound to forget ☹ )
>
> Of course, I also want to be able to b2 toolset=msvc-14.1,msvc14.2, gcc-8.1.0 ..
>

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build