Skip to content

Commit f2d1671

Browse files
committed
Fix a minor bug in the previous commit
1 parent 8373294 commit f2d1671

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const threadCount = coreCount * 2;
88

99
let CC = process.env.CC;
1010
let CXX = process.env.CXX;
11-
let ARCH = process.env.CXX;
11+
let ARCH = process.env.ARCH;
1212
if (!CC) CC = "gcc";
1313
if (!CXX) CXX = "g++";
14-
if (!ARCH) ARCH = "x64";
14+
if (!ARCH) ARCH = "amd64";
1515

1616
const nodejsGithubRepo = "https://github.com/nodejs/node";
1717
const removeTheVCharacter = (str) => str.replace("v", "");
@@ -80,6 +80,6 @@ if (process.platform == "linux") {
8080
await spawnAsync("./configure", ["--ninja", "--shared"], "node");
8181
await spawnAsync("make", [`-j${threadCount}`], "node");
8282
} else if (process.platform == "win32") {
83-
const arch = ARCH == "x64" ? "x64" : "arm64";
83+
const arch = ARCH == "amd64" ? "x64" : "arm64";
8484
await spawnAsync("vcbuild.bat", [arch, "dll"], "node");
8585
}

0 commit comments

Comments
 (0)