File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ const threadCount = coreCount * 2;
88
99let CC = process . env . CC ;
1010let CXX = process . env . CXX ;
11- let ARCH = process . env . CXX ;
11+ let ARCH = process . env . ARCH ;
1212if ( ! CC ) CC = "gcc" ;
1313if ( ! CXX ) CXX = "g++" ;
14- if ( ! ARCH ) ARCH = "x64 " ;
14+ if ( ! ARCH ) ARCH = "amd64 " ;
1515
1616const nodejsGithubRepo = "https://github.com/nodejs/node" ;
1717const 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}
You can’t perform that action at this time.
0 commit comments