RFR: Support Visual Studio BuildTools with VS2017

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Mon Mar 12 19:15:03 UTC 2018


On 2018-03-12 19:47, Erik Joelsson wrote:
> As was recently noted on this list, Microsoft has started offering a 
> smaller download of just the compilers and tools needed to build C++. 
> This can be very convenient for people wanting to just build openjdk 
> without the hassle of installing a full Visual Studio.
>
> We aren't quite ready to build all of OpenJDK with Visual Studio 2017, 
> but we are working on it. The build system is already able to 
> configure with it, but currently only for Community, Professional and 
> Enterprise editions. I would like to also add the BuildTools edition 
> to this list.
>
> I was able to install BuildTools in addition to the normal install and 
> it ended up in a different sub directory, analogous with the other 
> editions. I've tried to configure with it locally and with this 
> trivial change, I was able to build as far as with the full Visual 
> Studio installation.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8199473
>
> Patch:
>
> diff -r e59941f7247d make/autoconf/toolchain_windows.m4
> --- a/make/autoconf/toolchain_windows.m4        Fri Mar 09 19:20:19 
> 2018 +0100
> +++ b/make/autoconf/toolchain_windows.m4        Mon Mar 12 19:44:12 
> 2018 +0100
> @@ -77,7 +77,7 @@
>  VS_MSVCP_2017=msvcp140.dll
>  VS_ENVVAR_2017="VS150COMNTOOLS"
>  VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
> -VS_EDITIONS_2017="Community Professional Enterprise"
> +VS_EDITIONS_2017="BuildTools Community Professional Enterprise"
>  VS_SDK_INSTALLDIR_2017=
>  VS_VS_PLATFORM_NAME_2017="v141"
>  VS_SDK_PLATFORM_NAME_2017=
Looks good to me. Nice and surprising that it was so smooth!

/Magnus
>
>
> /Erik
>




More information about the build-dev mailing list