mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
add a build-run with debugging-options
This commit is contained in:
parent
b83f9472c0
commit
40747cfcfd
2 changed files with 13 additions and 2 deletions
|
|
@ -63,10 +63,11 @@ CFLAGS += -Wno-type-limits
|
|||
|
||||
ifdef LTC_DEBUG
|
||||
# compile for DEBUGGING (required for ccmalloc checking!!!)
|
||||
CFLAGS += -g3 -DLTC_NO_ASM
|
||||
ifneq (,$(strip $(LTC_DEBUG)))
|
||||
CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG=$(LTC_DEBUG)
|
||||
CFLAGS += -DLTC_TEST_DBG=$(LTC_DEBUG)
|
||||
else
|
||||
CFLAGS += -g3 -DLTC_NO_ASM -DLTC_TEST_DBG
|
||||
CFLAGS += -DLTC_TEST_DBG
|
||||
endif
|
||||
else
|
||||
|
||||
|
|
|
|||
10
run.sh
10
run.sh
|
|
@ -22,6 +22,16 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
rm -f testok.txt
|
||||
bash build.sh " $1" "$2" "$3 LTC_DEBUG=1" "$4" "$5"
|
||||
if [ -a testok.txt ] && [ -f testok.txt ]; then
|
||||
echo
|
||||
else
|
||||
echo
|
||||
echo "Test failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -f testok.txt
|
||||
bash build.sh " $1" "$2" "$3" "$4" "$5"
|
||||
if [ -a testok.txt ] && [ -f testok.txt ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue