From 4e2d1a1433d17a3b327b76aebdb3e56e90c060b1 Mon Sep 17 00:00:00 2001 From: Michaël Zasso Date: Sat, 20 Jul 2019 18:33:09 +0200 Subject: build,tools: support building with Visual Studio 2019 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a `vs2019` option to `vcbuild.bat` to use VS 2019 instead of VS 2017 PR-URL: https://github.com/nodejs/node/pull/28781 Reviewed-By: João Reis Reviewed-By: Refael Ackermann (רפאל פלחי) --- tools/gyp/pylib/gyp/MSVSVersion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/gyp') diff --git a/tools/gyp/pylib/gyp/MSVSVersion.py b/tools/gyp/pylib/gyp/MSVSVersion.py index a207abaa18..f89f1d0fc2 100644 --- a/tools/gyp/pylib/gyp/MSVSVersion.py +++ b/tools/gyp/pylib/gyp/MSVSVersion.py @@ -475,7 +475,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True): if version == 'auto': version = os.environ.get('GYP_MSVS_VERSION', 'auto') version_map = { - 'auto': ('15.0', '14.0', '12.0', '10.0', '9.0', '8.0', '11.0'), + 'auto': ('16.0', '15.0', '14.0', '12.0', '10.0', '9.0', '8.0', '11.0'), '2005': ('8.0',), '2005e': ('8.0',), '2008': ('9.0',), @@ -488,6 +488,7 @@ def SelectVisualStudioVersion(version='auto', allow_fallback=True): '2013e': ('12.0',), '2015': ('14.0',), '2017': ('15.0',), + '2019': ('16.0',), } override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH') if override_path: -- cgit v1.2.3