WIP: Auios' version - Do not merge. Only here for comparison #9

Draft
Auios wants to merge 28 commits from Auios/BlockLua:master into master
3 changed files with 55 additions and 74 deletions
Showing only changes of commit ee784869f1 - Show all commits

View File

@@ -1,19 +1,13 @@
@echo off @echo off
cd /d %~dp0 cd /d %~dp0
rem ensure build directory exists set "PATH=C:\msys64\mingw32\bin;%PATH%"
if not exist build mkdir build 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++ set buildargs=-Wall -Werror -m32 -shared -Isrc -Iinc/tsfuncs -Iinc/lua -lpsapi -L. -llua5.1 -static-libgcc -static-libstdc++
echo on echo on
g++ src/bllua4.cpp %buildargs% -o build\BlockLua.dll 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 @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: - Run the script:
```powershell ```powershell
msys_compile.bat compile.bat
``` ```
What the script does: 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