Fix Valgrind CI run when building with Clang
Clang creates now DWARFv5 debug infos which isn't supported in old Valgrind versions. Instruct Clang to create DWARFv4 debug infos, so we can run our tests in Valgrind. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
parent
bebf2ffd65
commit
410bd9188f
@ -21,7 +21,10 @@ make clean &>/dev/null
|
||||
|
||||
echo "Build for valgrind..."
|
||||
|
||||
make -j$MAKE_JOBS CFLAGS="$2 $CFLAGS $4" EXTRALIBS="$5" test LTC_DEBUG=1 1>gcc_1.txt 2>gcc_2.txt
|
||||
# set DWARFv4 as debug format for clang, since it creates DWARFv5 as default which isn't support in old valgrind
|
||||
[ -z "$(echo $CC | grep "clang")" ] || GFLAG="-gdwarf-4"
|
||||
|
||||
make -j$MAKE_JOBS CFLAGS="$2 $CFLAGS $4 $GFLAG" EXTRALIBS="$5" test LTC_DEBUG=1 1>gcc_1.txt 2>gcc_2.txt
|
||||
|
||||
echo "Run tests with valgrind..."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user