Recompile LuaJIT for Android with debug information.

This commit is contained in:
Miku AuahDark
2023-06-01 15:35:42 +08:00
parent eeb47f70c0
commit 9b9cc15813
5 changed files with 8 additions and 1 deletions
Binary file not shown.
Binary file not shown.
@@ -35,7 +35,7 @@ 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
@@ -43,9 +43,16 @@ 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