forked from redo/BlockLua
14 lines
412 B
Bash
14 lines
412 B
Bash
#!/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
|