gh-actions-lua icon indicating copy to clipboard operation
gh-actions-lua copied to clipboard

Fix C module loading on windows

Open leso-kn opened this issue 2 years ago • 1 comments

This PR addresses #39 and introduces 2 changes to the windows plain lua build:

  • Installs luaxx.dll next to lua.exe (bin/) where it can be picked up at runtime by native libraries linked against it
  • Links lua.exe against luaxx.dll to avoid "multiple lua VMs" errors

leso-kn avatar Oct 27 '23 17:10 leso-kn

@leafo I've tested this in the CI runs for luasystem at https://github.com/lunarmodules/luasystem/pull/17 and I confirm this works! Without this patch, the resulting binary can only run pure Lua code (which meant LuaRocks ran fine, but then the C-based packages built by it wouldn't load in the interpreter).

hishamhm avatar Mar 08 '24 20:03 hishamhm