From aceb9d387de18cc64434770dd2de743b79adebd9 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Wed, 16 Mar 2022 23:46:28 -0700 Subject: [PATCH] hmm --- main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 0227f93..7eb94cc 100644 --- a/main.js +++ b/main.js @@ -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" @@ -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") }) @@ -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" @@ -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 }) @@ -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}` @@ -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 }) }