From 7b8ae7803809fe3bfd9b4918e18a4cb4c79fa241 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 19 Feb 2020 10:07:02 +0000 Subject: [PATCH] More comment --- scripts/hak/hakEnv.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/hak/hakEnv.js b/scripts/hak/hakEnv.js index 265a41d..22b915a 100644 --- a/scripts/hak/hakEnv.js +++ b/scripts/hak/hakEnv.js @@ -44,6 +44,10 @@ function getTarget(packageJson) { function detectArch() { if (process.platform === 'win32') { + // vcvarsall.bat (the script that sets up the environment for + // visual studio build tools) sets an env var to tell us what + // architecture the active build tools target, so we auto-detect + // this. const targetArch = process.env.VSCMD_ARG_TGT_ARCH; if (targetArch === 'x86') { return 'ia32';