Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Created July 25, 2023 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uyjulian/d09260ebe256f46ea547c44954fdbb89 to your computer and use it in GitHub Desktop.
Save uyjulian/d09260ebe256f46ea547c44954fdbb89 to your computer and use it in GitHub Desktop.

Cross Compiling LuaJIT without needing host GCC

git clone https://github.com/openresty/luajit2.git
cd luajit2
make HOST_CC=i686-w64-mingw32-gcc CROSS=i686-w64-mingw32- TARGET_SYS=Windows MINILUA_T=host/minilua.exe BUILDVM_T=host/buildvm.exe MINILUA_X="wine host/minilua.exe" BUILDVM_X="wine host/buildvm.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment