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 committed 2022-11-02 17:13:21 +00:00
1 parent a43e982bca
commit 49ae843592
1 file changed
+10 -3
+10 -3
View File
@@ -16,9 +16,16 @@ esac
env >> test_env.log
$CC -v || true
valgrind --version || true
$WRAPPER_CMD --version || true
if [ -n "$CC" ]; then
# The MSVC compiler "cl" doesn't understand "-v"
$CC -v || true
fi
if [ "$WITH_VALGRIND" = "yes" ]; then
valgrind --version
fi
if [ -n "$WRAPPER_CMD" ]; then
$WRAPPER_CMD --version
fi
./autogen.sh