Skip to content

Commit a178209

Browse files
committed
ci: Force DWARF v4 for Clang when Valgrind tests are expected
1 parent 8a72734 commit a178209

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ci/cirrus.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ if [ -n "$WRAPPER_CMD" ]; then
5353
$WRAPPER_CMD --version
5454
fi
5555

56+
# Workaround for https://bugs.kde.org/show_bug.cgi?id=452758 (fixed in valgrind 3.20.0).
57+
case "${CC:-undefined}" in
58+
clang*)
59+
if [ "$CTIMETESTS" = "yes" ] && [ "$WITH_VALGRIND" = "yes" ]
60+
then
61+
export CFLAGS="${CFLAGS:+$CFLAGS }-gdwarf-4"
62+
else
63+
case "$WRAPPER_CMD" in
64+
valgrind*)
65+
export CFLAGS="${CFLAGS:+$CFLAGS }-gdwarf-4"
66+
;;
67+
esac
68+
fi
69+
;;
70+
esac
71+
5672
./autogen.sh
5773

5874
./configure \

0 commit comments

Comments
 (0)