I don't have enough experience to back up my words, but I believe that as long as the 32-bit lua binary is used to run this compiled file, it should work. Rather, binary code built with similar settings, given the fact that Lua offers several compiler options that affect the output of .luac files and their internal structure.
In general, the rule is not to mix the use of lua executables with .luac files created by another lua executable, since the internal format depends heavily on how the Lua compilers themselves compile.
So, if you run it with 32-bit Lua, you have created .luac files, the answer is yes. If you were to run it using the 64-bit Lua executable, that would be pretty straightforward.
source share