1
0
forked from redo/BlockLua

Create compile.sh

This commit is contained in:
2025-10-03 14:18:56 -04:00
parent fe9ee3cc2b
commit a910204363

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