Skip to content

Commit 49ae843

Browse files
committed
ci: mostly prevent "-v/--version: not found" irrelevant error
$CC, $WRAPPER_CMD and valgrind are not necessarily defined
1 parent a43e982 commit 49ae843

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

ci/cirrus.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@ esac
1616

1717
env >> test_env.log
1818

19-
$CC -v || true
20-
valgrind --version || true
21-
$WRAPPER_CMD --version || true
19+
if [ -n "$CC" ]; then
20+
# The MSVC compiler "cl" doesn't understand "-v"
21+
$CC -v || true
22+
fi
23+
if [ "$WITH_VALGRIND" = "yes" ]; then
24+
valgrind --version
25+
fi
26+
if [ -n "$WRAPPER_CMD" ]; then
27+
$WRAPPER_CMD --version
28+
fi
2229

2330
./autogen.sh
2431

0 commit comments

Comments
 (0)