Skip to content

Commit aceb9d3

Browse files
committed
hmm
1 parent 90ac9fe commit aceb9d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function install_luajit_openresty(luaInstallPath) {
3434
cwd: installPath
3535
})
3636

37-
let finalCompileFlags = "-j"
37+
let finalCompileFlags = "-j4"
3838

3939
if (isMacOS()) {
4040
finalCompileFlags += " MACOSX_DEPLOYMENT_TARGET=10.15"
@@ -48,7 +48,7 @@ async function install_luajit_openresty(luaInstallPath) {
4848
cwd: path.join(installPath, "luajit2")
4949
})
5050

51-
await exec.exec(`make -j install PREFIX="${luaInstallPath}"`, undefined, {
51+
await exec.exec(`make -j4 install PREFIX="${luaInstallPath}"`, undefined, {
5252
cwd: path.join(installPath, "luajit2")
5353
})
5454

@@ -66,7 +66,7 @@ async function install_luajit(luaInstallPath, luajitVersion) {
6666
await io.mkdirP(luaExtractPath)
6767
await tc.extractTar(luaSourceTar, INSTALL_PREFIX)
6868

69-
let finalCompileFlags = "-j"
69+
let finalCompileFlags = "-j4"
7070

7171
if (isMacOS()) {
7272
finalCompileFlags += " MACOSX_DEPLOYMENT_TARGET=10.15"
@@ -80,7 +80,7 @@ async function install_luajit(luaInstallPath, luajitVersion) {
8080
cwd: luaExtractPath
8181
})
8282

83-
await exec.exec(`make -j install PREFIX="${luaInstallPath}"`, undefined, {
83+
await exec.exec(`make -j4 install PREFIX="${luaInstallPath}"`, undefined, {
8484
cwd: luaExtractPath
8585
})
8686

@@ -108,7 +108,7 @@ async function install_plain_lua(luaInstallPath, luaVersion) {
108108
})
109109
}
110110

111-
let finalCompileFlags = `-j ${isMacOS() ? "macosx" : "linux"}`
111+
let finalCompileFlags = `-j4 ${isMacOS() ? "macosx" : "linux"}`
112112

113113
if (luaCompileFlags) {
114114
finalCompileFlags += ` ${luaCompileFlags}`
@@ -118,7 +118,7 @@ async function install_plain_lua(luaInstallPath, luaVersion) {
118118
cwd: luaExtractPath
119119
})
120120

121-
await exec.exec(`make -j INSTALL_TOP="${luaInstallPath}" install`, undefined, {
121+
await exec.exec(`make -j4 INSTALL_TOP="${luaInstallPath}" install`, undefined, {
122122
cwd: luaExtractPath
123123
})
124124
}

0 commit comments

Comments
 (0)