r/lua • u/thebigpapaishere • Apr 20 '25
Help How to compile lua into .lu
I'm trying to compile lua into .lu
0
Upvotes
r/lua • u/thebigpapaishere • Apr 20 '25
I'm trying to compile lua into .lu
5
u/Red_Birdly Apr 20 '25
You can't compile to .lu, it's not a existing lua file extension
However if you meant .luac then the command is: luac -o output.luac input.lua
1
u/Bright-Historian-216 Apr 20 '25
you can compile into .luac, if i remember correctly it was something like "luac source.lua -o compiled.luac"
3
u/Radamat Apr 20 '25
I googled what us .lu and found that it very improbable that it us lua-file. You need to look inside the .lu file and determine what it is by content. First 2-4 bytes may help in case of binary. Its a magic number or marker.
1
u/[deleted] Apr 20 '25
[removed] — view removed comment