Build with VS 2019
Anthony Vanelverdinghe
anthonyv.be at outlook.com
Wed Apr 17 14:38:23 UTC 2019
Hi Yasumasa
There is already an issue [1] for this, which is in progress.
[1] https://bugs.openjdk.java.net/browse/JDK-8221988
Kind regards,
Anthony
From: Yasumasa Suenaga<mailto:yasuenag at gmail.com>
Sent: Wednesday, 17 April 2019 16:19
To: build-dev at openjdk.java.net<mailto:build-dev at openjdk.java.net>
Subject: Build with VS 2019
Hi all,
I tried to build jdk/jdk on WSL with VS 2019.
Someone work for VS 2019?
If not, I want to file it to JBS and contribute patch as below.
It works fine on my environment.
------------------
diff -r 4224f26b2e7f make/autoconf/toolchain_windows.m4
--- a/make/autoconf/toolchain_windows.m4 Mon Apr 15 06:41:02 2019
-0700
+++ b/make/autoconf/toolchain_windows.m4 Wed Apr 17 23:14:56 2019
+0900
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights
reserved.
+# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights
reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
################################################################################
# The order of these defines the priority by which we try to find them.
-VALID_VS_VERSIONS="2017 2013 2015 2012 2010"
+VALID_VS_VERSIONS="2017 2013 2015 2012 2010 2019"
VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
VS_VERSION_INTERNAL_2010=100
@@ -89,6 +89,20 @@
VS_SUPPORTED_2017=true
VS_TOOLSET_SUPPORTED_2017=true
+VS_DESCRIPTION_2019="Microsoft Visual Studio 2019"
+VS_VERSION_INTERNAL_2019=142
+VS_MSVCR_2019=vcruntime140.dll
+VS_MSVCP_2019=msvcp140.dll
+VS_ENVVAR_2019="VS160COMNTOOLS"
+VS_USE_UCRT_2019="true"
+VS_VS_INSTALLDIR_2019="Microsoft Visual Studio/2019"
+VS_EDITIONS_2019="BuildTools Community Professional Enterprise"
+VS_SDK_INSTALLDIR_2019=
+VS_VS_PLATFORM_NAME_2019="v142"
+VS_SDK_PLATFORM_NAME_2019=
+VS_SUPPORTED_2019=true
+VS_TOOLSET_SUPPORTED_2019=true
+
################################################################################
AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
@@ -99,7 +113,7 @@
METHOD="$3"
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(VS_BASE)
- # In VS 2017, the default installation is in a subdir named after
the edition.
+ # In VS 2017 or later, the default installation is in a subdir
named after the edition.
# Find the first one present and use that.
if test "x$VS_EDITIONS" != x; then
for edition in $VS_EDITIONS; do
------------------
Thanks,
Yasumasa
More information about the build-dev
mailing list