Skip to content

Commit

Permalink
Fix a minor bug in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
devraymondsh committed Apr 7, 2024
1 parent 8373294 commit f2d1671
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const threadCount = coreCount * 2;

let CC = process.env.CC;
let CXX = process.env.CXX;
let ARCH = process.env.CXX;
let ARCH = process.env.ARCH;
if (!CC) CC = "gcc";
if (!CXX) CXX = "g++";
if (!ARCH) ARCH = "x64";
if (!ARCH) ARCH = "amd64";

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

0 comments on commit f2d1671

Please sign in to comment.