From ba8ee17de5aa9a0410953f88db0cb4de47fe2419 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 PR-URL: https://github.com/nodejs/node/pull/21437 Fixes: https://github.com/nodejs/node/issues/21402 Reviewed-By: Richard Lau Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- vcbuild.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 595f8dd6c99941..8f135871ba838f 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