RFR: Support Visual Studio BuildTools with VS2017 (original) (raw)

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/toolchainwindows.m4 --- a/make/autoconf/toolchainwindows.m4        Fri Mar 09 19:20:19 2018 +0100 +++ b/make/autoconf/toolchainwindows.m4        Mon Mar 12 19:44:12 2018 +0100 @@ -77,7 +77,7 @@  VSMSVCP2017=msvcp140.dll  VSENVVAR2017="VS150COMNTOOLS"  VSVSINSTALLDIR2017="Microsoft Visual Studio/2017" -VSEDITIONS2017="Community Professional Enterprise" +VSEDITIONS2017="BuildTools Community Professional Enterprise"  VSSDKINSTALLDIR2017=  VSVSPLATFORMNAME2017="v141"  VSSDKPLATFORMNAME2017= Looks good to me. Nice and surprising that it was so smooth!

/Magnus

/Erik



More information about the build-dev mailing list