Skip to content

Commit

Permalink
ci: mostly prevent "-v/--version: not found" irrelevant error
Browse files Browse the repository at this point in the history
$CC, $WRAPPER_CMD and valgrind are not necessarily defined
  • Loading branch information
jonasnick committed Nov 2, 2022
1 parent a43e982 commit 49ae843
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 49ae843

Please sign in to comment.