Skip to content

Commit

Permalink
ci: Force DWARF v4 for Clang when Valgrind tests are expected
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jun 26, 2023
1 parent 8a72734 commit a178209
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ if [ -n "$WRAPPER_CMD" ]; then
$WRAPPER_CMD --version
fi

# Workaround for https://bugs.kde.org/show_bug.cgi?id=452758 (fixed in valgrind 3.20.0).
case "${CC:-undefined}" in
clang*)
if [ "$CTIMETESTS" = "yes" ] && [ "$WITH_VALGRIND" = "yes" ]
then
export CFLAGS="${CFLAGS:+$CFLAGS }-gdwarf-4"
else
case "$WRAPPER_CMD" in
valgrind*)
export CFLAGS="${CFLAGS:+$CFLAGS }-gdwarf-4"
;;
esac
fi
;;
esac

./autogen.sh

./configure \
Expand Down

0 comments on commit a178209

Please sign in to comment.