Skip to content

Commit

Permalink
fix: fix ReferenceError on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored and hishamhm committed Aug 31, 2024
1 parent bcd3653 commit eca6cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function installWindows(luaRocksVersion, tempBuildPath, luaRocksInstallPat

await exec.exec(`luarocks config LUA_LIBDIR ${luaPath}/lib`, undefined, {})

if (semver.lt(luarocksVersion, "3.9.2") && !process.env["VCINSTALLDIR"]) {
if (semver.lt(luaRocksVersion, "3.9.2") && !process.env["VCINSTALLDIR"]) {
await exec.exec(`luarocks config variables.CC "x86_64-w64-mingw32-gcc"`, undefined, {})
await exec.exec(`luarocks config variables.LD "x86_64-w64-mingw32-gcc"`, undefined, {})
}
Expand Down

0 comments on commit eca6cc3

Please sign in to comment.