ci: Use Homebrew's gcc in native macOS task

Co-authored-by: Tim Ruffing <crypto@timruffing.de>
This commit is contained in:
Hennadii Stepanov 2023-08-16 14:39:58 +01:00
parent b2f6712dd3
commit d62db57427
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
2 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,7 @@ task:
- env: {BUILD: distcheck}
brew_script:
- brew install automake libtool gcc
- ln -s /opt/homebrew/bin/gcc-?? /opt/homebrew/bin/gcc
test_script:
- ./ci/cirrus.sh
<< : *CAT_LOGS

View File

@ -43,6 +43,13 @@ esac
env >> test_env.log
# If gcc is requested, assert that it's in fact gcc (and not some symlinked Apple clang).
case "${CC:-undefined}" in
*gcc*)
$CC -v 2>&1 | grep -q "gcc version" || exit 1;
;;
esac
if [ -n "${CC+x}" ]; then
# The MSVC compiler "cl" doesn't understand "-v"
$CC -v || true