Search code examples
visual-studio-2010luajit

How to compile LuaJit MSVC with DLUAJIT_ENABLE_LUA52COMPAT x86?


I am able to successfully build/compile LuaJit in static mode by doing msvcbuild.bat static. Though at the bottom of LuaJit Extensions it says if I use DLUAJIT_ENABLE_LUA52COMPAT option while building I will be able to use Lua5.2 components. Yet I don't see anywhere in the msvcbuild.bat file where I could add this on. If anyone has any information it would be greatly appreciated.


Solution

  • The line you want to change starts with LJCOMPILE=cl right near the top of msvcbuild.bat just add /DLUAJIT_ENABLE_LUA52COMPAT to end of it.