Skip to content

Commit

Permalink
Recompile LuaJIT for Android with debug information.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Jun 1, 2023
1 parent eeb47f7 commit 9b9cc15
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
Binary file modified love/src/jni/LuaJIT-2.1/android/arm64-v8a/libluajit.a
Binary file not shown.
Binary file modified love/src/jni/LuaJIT-2.1/android/armeabi-v7a/libluajit.a
Binary file not shown.
Binary file modified love/src/jni/LuaJIT-2.1/android/x86/libluajit.a
Binary file not shown.
Binary file modified love/src/jni/LuaJIT-2.1/android/x86_64/libluajit.a
Binary file not shown.
9 changes: 8 additions & 1 deletion love/src/jni/LuaJIT-2.1/build_instructions.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,24 @@ goto :done
if exist android\%1\libluajit.a exit /b 0
wsl make clean
if not "%ERRORLEVEL%" == "0" goto :error
wsl make HOST_LUA=luajit.exe "HOST_CC=clang.exe %4" HOST_CFLAGS=-D_CRT_SECURE_NO_WARNINGS CC=clang CROSS=%2- "STATIC_CC=%2%3-clang -fPIC" "DYNAMIC_CC=%2%3-clang -fPIC" "TARGET_AR=llvm-ar.exe rcus" TARGET_LD=%2%3-clang TARGET_LDFLAGS=-fuse-ld=lld TARGET_STRIP=llvm-strip.exe amalg -j%NUMBER_OF_PROCESSORS%
wsl make HOST_LUA=luajit.exe "HOST_CC=clang.exe %4" HOST_CFLAGS=-D_CRT_SECURE_NO_WARNINGS CC=clang CROSS=%2- "STATIC_CC=%2%3-clang -fPIC" "DYNAMIC_CC=%2%3-clang -fPIC" "TARGET_AR=llvm-ar.exe rcus" TARGET_LD=%2%3-clang CCDEBUG=-g TARGET_LDFLAGS=-fuse-ld=lld TARGET_STRIP=llvm-strip.exe amalg -j%NUMBER_OF_PROCESSORS%
if not "%ERRORLEVEL%" == "0" goto :error
copy src\libluajit.a android\%1\libluajit.a
if not "%ERRORLEVEL%" == "0" goto :error
xcopy src\jit android\%1\jit /I
del android\%1\jit\.gitignore
goto :done

:post_cleanup
del src\host\buildvm.ilk
del src\host\buildvm.pdb
exit /b 0

:error
call :post_cleanup
exit /b 1

:done
wsl make clean
call :post_cleanup
exit /b 0

0 comments on commit 9b9cc15

Please sign in to comment.