ci: Force DWARF v4 for Clang when Valgrind tests are expected

This commit is contained in:
Hennadii Stepanov 2023-06-26 10:03:19 +01:00
parent 8a7273465b
commit a1782098a9
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -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 \