diff --git a/main.js b/main.js index 86b2712..55538d6 100644 --- a/main.js +++ b/main.js @@ -181,10 +181,16 @@ async function installSystemDependencies() { } async function addCMakeBuildScripts(sourcePath, luaVersion) { - debug("addCMakeBuildScripts %s", luaVersion) + if (luaVersion.indexOf("jit") > -1) { + return; + } + debug("addCMakeBuildScripts %s, %s", sourcePath, luaVersion) fs.unlinkSync(path.join(sourcePath, "src", "luaconf.h")) + debug("removed luaconf.h") mergeDirectory(path.join(__dirname, "patch", "shared"), sourcePath) + debug("merged patch/shared with %s", sourcePath) const v = luaVersion.replace(/\.\d*$/,'') + debug("v: %s", v) mergeDirectory(path.join(__dirname, "patch", "lua", v), sourcePath) console.log("VERSION: " + v) showDirectory(sourcePath)