You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\work\node\github\node>vcbuildLooking for PythonPython 2 found in C:\Python27\\python.exeLooking for NASMLooking for Visual Studio 2019calling: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\\Auxiliary\Build\vcvarsall.bat" amd64************************************************************************ Visual Studio 2017 Developer Command Prompt v15.9.3** Copyright (c) 2017 Microsoft Corporation**********************************************************************[vcvarsall.bat] Environment initialized for: 'x64'Found MSVS version 15.0configure --dest-cpu=x64Node configure: Found Python 2.7.13...�[1m�[32mINFO�[0m: Using floating patch "tools/icu/patches/64/source/common/putil.cpp" from "tools/icu"�[1m�[32mINFO�[0m: Using floating patch "tools/icu/patches/64/source/i18n/dtptngen.cpp" from "tools/icu"Warning: Missing input files:tools\v8_gypfiles\..\..\deps\v8\src\regexp\regexp-special-case.h�[1m�[32mINFO�[0m: configure completed successfullyProject files generated.C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\work\node\github\node\deps\histogram\histogram.vcxproj]
After further investigation this problem only manifests if building from a Visual Studio 2017 command prompt. The VS 2017 command prompts set VCINSTALLDIR and having that set before calling vcbuild.bat was causing the detection logic to fail.
Running from a normal command prompt (without any of the Visual Studio environment variables set) works as expected.
#30119 fixes the Visual Studio command prompt case by clearing VCINSTALLDIR in vcbuild.bat.
Activity
richardlau commentedon Oct 25, 2019
With
DEBUG_HELPER=1richardlau commentedon Oct 25, 2019
Fix in #30119.
[-]vcbuild.bat fails with VS2017[/-][+]vcbuild.bat fails with Visual Studio 2017[/+]richardlau commentedon Oct 25, 2019
After further investigation this problem only manifests if building from a Visual Studio 2017 command prompt. The VS 2017 command prompts set
VCINSTALLDIRand having that set before callingvcbuild.batwas causing the detection logic to fail.Running from a normal command prompt (without any of the Visual Studio environment variables set) works as expected.
#30119 fixes the Visual Studio command prompt case by clearing
VCINSTALLDIRinvcbuild.bat.build: fix detection of Visual Studio 2017
build: fix detection of Visual Studio 2017