|
1 | 1 | #
|
2 |
| -# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | #
|
5 | 5 | # This code is free software; you can redistribute it and/or modify it
|
|
25 | 25 |
|
26 | 26 | ################################################################################
|
27 | 27 | # The order of these defines the priority by which we try to find them.
|
28 |
| -VALID_VS_VERSIONS="2019 2017 2022" |
29 |
| - |
30 |
| -VS_DESCRIPTION_2017="Microsoft Visual Studio 2017" |
31 |
| -VS_VERSION_INTERNAL_2017=141 |
32 |
| -VS_MSVCR_2017=vcruntime140.dll |
33 |
| -VS_MSVCP_2017=msvcp140.dll |
34 |
| -VS_ENVVAR_2017="VS150COMNTOOLS" |
35 |
| -VS_USE_UCRT_2017="true" |
36 |
| -VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017" |
37 |
| -VS_EDITIONS_2017="BuildTools Community Professional Enterprise" |
38 |
| -VS_SDK_INSTALLDIR_2017= |
39 |
| -VS_VS_PLATFORM_NAME_2017="v141" |
40 |
| -VS_SDK_PLATFORM_NAME_2017= |
41 |
| -VS_SUPPORTED_2017=true |
42 |
| -VS_TOOLSET_SUPPORTED_2017=true |
| 28 | +VALID_VS_VERSIONS="2022 2019" |
43 | 29 |
|
44 | 30 | VS_DESCRIPTION_2019="Microsoft Visual Studio 2019"
|
45 | 31 | VS_VERSION_INTERNAL_2019=142
|
@@ -84,7 +70,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
|
84 | 70 | UTIL_FIXUP_PATH(VS_BASE, NOFAIL)
|
85 | 71 |
|
86 | 72 | if test "x$VS_BASE" != x && test -d "$VS_BASE"; then
|
87 |
| - # In VS 2017 and VS 2019, the default installation is in a subdir named after the edition. |
| 73 | + # In VS 2019, the default installation is in a subdir named after the edition. |
88 | 74 | # Find the first one present and use that.
|
89 | 75 | if test "x$VS_EDITIONS" != x; then
|
90 | 76 | for edition in $VS_EDITIONS; do
|
@@ -172,11 +158,9 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT],
|
172 | 158 | # build environment and assigns it to VS_ENV_CMD
|
173 | 159 | AC_DEFUN([TOOLCHAIN_FIND_VISUAL_STUDIO_BAT_FILE],
|
174 | 160 | [
|
175 |
| - # VS2017 provides the option to install previous minor versions of the MSVC |
176 |
| - # toolsets. It is not possible to directly download earlier minor versions of |
177 |
| - # VS2017 and in order to build with a previous minor compiler toolset version, |
178 |
| - # it is now possible to compile with earlier minor versions by passing |
179 |
| - # -vcvars_ver=<toolset_version> argument to vcvarsall.bat. |
| 161 | + # Since VS2017 MS provides the option to install previous minor versions of |
| 162 | + # the toolset. In order to build with a previous minor compiler toolset |
| 163 | + # version, pass -vcvars_ver=<toolset_version> argument to vcvarsall.bat. |
180 | 164 | AC_ARG_WITH(msvc-toolset-version, [AS_HELP_STRING([--with-msvc-toolset-version],
|
181 | 165 | [specific MSVC toolset version to use, passed as -vcvars_ver argument to
|
182 | 166 | pass to vcvarsall.bat (Windows only)])])
|
@@ -494,14 +478,9 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
|
494 | 478 |
|
495 | 479 | if test "x$MSVC_DLL" = x; then
|
496 | 480 | if test "x$VCINSTALLDIR" != x; then
|
497 |
| - if test "$VS_VERSION" -lt 2017; then |
498 |
| - # Probe: Using well-known location from Visual Studio 12.0 and older |
499 |
| - POSSIBLE_MSVC_DLL="$VCINSTALLDIR/redist/$vs_target_cpu/microsoft.vc${VS_VERSION_INTERNAL}.crt/$DLL_NAME" |
500 |
| - else |
501 |
| - # Probe: Using well-known location from VS 2017 and VS 2019 |
502 |
| - POSSIBLE_MSVC_DLL="`ls $VCToolsRedistDir/$vs_target_cpu/microsoft.vc${VS_VERSION_INTERNAL}.crt/$DLL_NAME 2> /dev/null`" |
503 |
| - fi |
504 |
| - # In case any of the above finds more than one file, loop over them. |
| 481 | + # Probe: Using well-known location |
| 482 | + POSSIBLE_MSVC_DLL="`ls $VCToolsRedistDir/$vs_target_cpu/microsoft.vc${VS_VERSION_INTERNAL}.crt/$DLL_NAME 2> /dev/null`" |
| 483 | + # If the above finds more than one file, loop over them. |
505 | 484 | for possible_msvc_dll in $POSSIBLE_MSVC_DLL; do
|
506 | 485 | TOOLCHAIN_CHECK_POSSIBLE_MSVC_DLL([$DLL_NAME], [$possible_msvc_dll],
|
507 | 486 | [well-known location in VCINSTALLDIR])
|
|
1 commit comments
openjdk-notifier[bot] commentedon Aug 31, 2022
Review
Issues