Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Mar 17, 2022
1 parent 90ac9fe commit aceb9d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function install_luajit_openresty(luaInstallPath) {
cwd: installPath
})

let finalCompileFlags = "-j"
let finalCompileFlags = "-j4"

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

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

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

let finalCompileFlags = "-j"
let finalCompileFlags = "-j4"

if (isMacOS()) {
finalCompileFlags += " MACOSX_DEPLOYMENT_TARGET=10.15"
Expand All @@ -80,7 +80,7 @@ async function install_luajit(luaInstallPath, luajitVersion) {
cwd: luaExtractPath
})

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

Expand Down Expand Up @@ -108,7 +108,7 @@ async function install_plain_lua(luaInstallPath, luaVersion) {
})
}

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

if (luaCompileFlags) {
finalCompileFlags += ` ${luaCompileFlags}`
Expand All @@ -118,7 +118,7 @@ async function install_plain_lua(luaInstallPath, luaVersion) {
cwd: luaExtractPath
})

await exec.exec(`make -j INSTALL_TOP="${luaInstallPath}" install`, undefined, {
await exec.exec(`make -j4 INSTALL_TOP="${luaInstallPath}" install`, undefined, {
cwd: luaExtractPath
})
}
Expand Down

0 comments on commit aceb9d3

Please sign in to comment.