update script

This commit is contained in:
blueloveTH 2025-03-12 13:17:36 +08:00
parent 6264776999
commit 92d3a589e8
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
set -e
python prebuild.py
# python prebuild.py
SRC=$(find src/ -name "*.c")

View File

@ -1,10 +1,10 @@
set -e
python prebuild.py
# python prebuild.py
SRC=$(find src/ -name "*.c")
FLAGS="-std=c11 -lm -ldl -I3rd/lz4 -Iinclude -O0 -Wfatal-errors -g -DDEBUG -DPK_ENABLE_OS=1 -DPK_BUILD_MODULE_LZ4"
FLAGS="-std=c11 -lm -ldl -Iinclude -O0 -Wfatal-errors -g -DDEBUG -DPK_ENABLE_OS=1"
SANITIZE_FLAGS="-fsanitize=address,leak,undefined"
@ -13,5 +13,5 @@ if [ "$(uname)" == "Darwin" ]; then
fi
echo "Compiling C files..."
gcc -m32 $FLAGS $SANITIZE_FLAGS $SRC src2/main.c 3rd/lz4/lz4libs/lz4.c -o main
gcc -m32 $FLAGS $SANITIZE_FLAGS $SRC src2/main.c -o main