When testing, build with -DDEBUG.

This commit is contained in:
Emil Mikulic 2015-01-01 18:32:01 +11:00
parent 4bf0ef5896
commit 72c5539412
5 changed files with 6 additions and 6 deletions

View File

@ -11,4 +11,4 @@ CHECKER=$LLVM/llvm/tools/clang/tools/scan-build/ccc-analyzer
$LLVM/llvm/tools/clang/tools/scan-build/scan-build \
-analyze-headers \
--use-analyzer=$LLVM/install/bin/clang \
clang $TARGET
clang -DDEBUG $TARGET

View File

@ -9,5 +9,5 @@ LLVM=$HOME/llvm
$LLVM/install/bin/clang -Weverything -O \
-Wno-unreachable-code -Wno-padded -Wno-disabled-macro-expansion \
$TARGET
-DDEBUG $TARGET
rm -f a.out

View File

@ -13,7 +13,7 @@ if [ ! -e test.py ]; then
fi
if [ \( ! -x a.out \) -o \( ../darkhttpd.c -nt a.out \) ]; then
echo "===> building a.out, darkhttpd.gcno"
$CC -g -O2 -fprofile-arcs -ftest-coverage ../darkhttpd.c || exit 1
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG ../darkhttpd.c || exit 1
fi
if [ -e $DIR ]; then
rm -rf $DIR || exit 1

View File

@ -2,6 +2,6 @@
AFL_PATH=~/afl/afl-1.06b
export AFL_PATH
TMP=/dev/shm/darkhttpd
AFL_HARDEN=1 $AFL_PATH/afl-gcc -O3 fuzz_make_safe_uri.c -o fuzz_make_safe_uri
AFL_HARDEN=1 $AFL_PATH/afl-gcc -O3 -DDEBUG fuzz_make_safe_uri.c -o fuzz_make_safe_uri
mkdir $TMP
$AFL_PATH/afl-fuzz -i fuzz_testcases -o $TMP ./fuzz_make_safe_uri

View File

@ -4,7 +4,7 @@
#
TARGET=$(dirname $0)/../darkhttpd.c
gcc -O -fstrict-aliasing \
gcc -O2 -fstrict-aliasing \
--all-warnings --extra-warnings \
$TARGET
-DDEBUG $TARGET
rm -f a.out