Compare commits

...

2 Commits

Author SHA1 Message Date
43e1370c7c ... 2025-10-03 14:29:07 -04:00
a910204363 Create compile.sh 2025-10-03 14:18:56 -04:00
4 changed files with 13 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -9,5 +9,3 @@ g++ src/bllua4.cpp %buildargs% -o BlockLua.dll && g++ -DBLLUA_UNSAFE src/bllua4.
rem objdump -d BlockLua.dll > BlockLua.dll.dump.txt
rem objdump -d BlockLua-Unsafe.dll > BlockLua-Unsafe.dll.dump.txt
pause

13
compile.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
buildargs="-Wall -Werror -m32 -shared -Isrc -Iinc/tsfuncs -Iinc/lua -lpsapi -L. -llua5.1 -static-libgcc -static-libstdc++"
set -x
g++ src/bllua4.cpp $buildargs -o BlockLua.dll && g++ -DBLLUA_UNSAFE src/bllua4.cpp $buildargs -o BlockLua-Unsafe.dll
set +x
# objdump -d BlockLua.dll > BlockLua.dll.dump.txt
# objdump -d BlockLua-Unsafe.dll > BlockLua-Unsafe.dll.dump.txt