More comment

This commit is contained in:
David Baker 2020-02-19 10:07:02 +00:00
parent dfef609a3f
commit 7b8ae78038

View File

@ -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';