1
0
forked from redo/BlockLua

Merge msys_compile.bat into compile.bat

This commit is contained in:
2025-10-05 19:52:41 -04:00
parent 0815a6d229
commit ee784869f1
3 changed files with 55 additions and 74 deletions

View File

@@ -1,19 +1,13 @@
@echo off
cd /d %~dp0
rem ensure build directory exists
set "PATH=C:\msys64\mingw32\bin;%PATH%"
if not exist build mkdir build
set buildargs=-Wall -Werror -m32 -shared -Isrc -Iinc/tsfuncs -Iinc/lua -lpsapi -L. -llua5.1 -static-libgcc -static-libstdc++
echo on
g++ src/bllua4.cpp %buildargs% -o build\BlockLua.dll
@rem g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o BlockLua-Unsafe.dll
g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o build\BlockLua-Unsafe.dll
@echo off
rem objdump -d build\BlockLua.dll > build\BlockLua.dll.dump.txt
rem objdump -d build\BlockLua-Unsafe.dll > build\BlockLua-Unsafe.dll.dump.txt
pause

View File

@@ -27,7 +27,7 @@ What these packages are for:
- Run the script:
```powershell
msys_compile.bat
compile.bat
```
What the script does:

View File

@@ -1,13 +0,0 @@
@echo off
cd /d %~dp0
set "PATH=C:\msys64\mingw32\bin;%PATH%"
if not exist build mkdir build
set buildargs=-Wall -Werror -m32 -shared -Isrc -Iinc/tsfuncs -Iinc/lua -lpsapi -L. -llua5.1 -static-libgcc -static-libstdc++
echo on
g++ src/bllua4.cpp %buildargs% -o build\BlockLua.dll
g++ -DBLLUA_UNSAFE src/bllua4.cpp %buildargs% -o build\BlockLua-Unsafe.dll
@echo off