On 1/23/2020 3:27 AM, Edward Diener via Boost-build wrote:
> I have both Visual Studio 2019 and the latest Visual Studio 2019 Preview
> version installed in separate locations. I have no problem testing a
> Boost library using VS2019 with the normal msvc-14.2, simply be having
> in my user-config.jam:
>
> using msvc : 14.2 : : <cxxflags>"/Zc:__cplusplus" ;
>
> Is there any easy way I can test with the VS2019 Preview version ? I
> would even be willing to temporarily replace my user-config.jam entry
> above with something else which would find and use my Preview version
> instead of the normal regular version of VS 2019 if necessary. I can
> always change it back to test the normal VS2019 when necessary.
>
> Any help would be appreciated.
I was able to figure out how to use the Visual Studio 2019 Preview
release in Boost Build although I could not figure out a way to use both
the Visual Studio 2019 release and the Visual Studio 2019 Preview
release at the same time. My solution was to add another toolset entry
for msvc-14.2 which has, in addition to my previous entry above, options
for <setup-amd64> and <setup-i386> which point respectively to the
vcvars64.bat and vcvars32.bat for the Preview release, and also adding
the option <rewrite-setup-scripts>always. I then commented out my
original toolset line for msvc-14.2 above and Boost Build successfully
used the Preview release. Of course I have to manually switch between my
original msvc-14.2 toolset and my new Preview release msvc-14.2 toolset
by commenting out or uncommenting out one or the other, but since both
are msvc-14.2 I do not see how both can coexist in my user-config.jam. I
had to also add to my original msvc-14.2 toolset line above the
<rewrite-setup-scripts>always option to force each msvc-14.2 toolset
which I use to use its own setup script. I do not think there is a way
to use both of them together, so if anybody knows of a way to do that I
would love to hear about it.
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build