ci: mostly prevent "-v/--version: not found" irrelevant error

$CC, $WRAPPER_CMD and valgrind are not necessarily defined
This commit is contained in:
Jonas Nick 2022-11-02 14:21:04 +00:00
parent a43e982bca
commit 49ae843592
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -16,9 +16,16 @@ esac
env >> test_env.log
if [ -n "$CC" ]; then
# The MSVC compiler "cl" doesn't understand "-v"
$CC -v || true
valgrind --version || true
$WRAPPER_CMD --version || true
fi
if [ "$WITH_VALGRIND" = "yes" ]; then
valgrind --version
fi
if [ -n "$WRAPPER_CMD" ]; then
$WRAPPER_CMD --version
fi
./autogen.sh