Last active
December 13, 2015 21:56
-
-
Save gauravs/6da0f1cca14171319109 to your computer and use it in GitHub Desktop.
Lua Compile Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ..\bin | |
ren luaconf.h.orig luaconf.h | |
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c | |
ren lua.obj lua.o | |
ren luac.obj luac.o | |
link /DLL /IMPLIB:lua5.2.lib /OUT:..\bin\lua5.2.dll *.obj | |
link /OUT:..\bin\lua.exe lua.o lua5.2.lib | |
lib /OUT:..\bin\lua5.2-static.lib *.obj | |
link /OUT:..\bin\luac.exe luac.o ..\bin\lua5.2-static.lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment