Skip to content

Commit c2ee917

Browse files
committed
Merge bitcoin-core/secp256k1#1146: ci: prevent "-v/--version: not found" irrelevant error
49ae843 ci: mostly prevent "-v/--version: not found" irrelevant error (Jonas Nick) Pull request description: ACKs for top commit: real-or-random: ACK 49ae843 Tree-SHA512: 2e048b037826dff372e26103f198e0d490494e7909d17d8632b51f6d9e0629b51bcd0b55b65b2c21d63d522394ccfed481ce126cea165c087df670556bc8ccf6
2 parents e13fae4 + 49ae843 commit c2ee917

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)