From 63d5fd84f452746218550411b4536d29aab9dd14 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Thu, 21 Jun 2018 12:09:08 +0200 Subject: [PATCH] win, build: fix building on 32-bit machines Fixes: https://github.com/nodejs/node/issues/21402 --- vcbuild.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 49ff50f60e4a36..5a04fa82a5a112 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -203,6 +203,8 @@ if _%PROCESSOR_ARCHITEW6432%_==_AMD64_ set msvs_host_arch=amd64 set vcvarsall_arg=%msvs_host_arch%_%target_arch% @rem unless both host and target are x64 if %target_arch%==x64 if %msvs_host_arch%==amd64 set vcvarsall_arg=amd64 +@rem also if both are x86 +if %target_arch%==x86 if %msvs_host_arch%==x86 set vcvarsall_arg=x86 @rem Look for Visual Studio 2017 :vs-set-2017