ci: Use Homebrew's gcc in native macOS task
Co-authored-by: Tim Ruffing <crypto@timruffing.de>
This commit is contained in:
parent
b2f6712dd3
commit
d62db57427
@ -139,6 +139,7 @@ task:
|
|||||||
- env: {BUILD: distcheck}
|
- env: {BUILD: distcheck}
|
||||||
brew_script:
|
brew_script:
|
||||||
- brew install automake libtool gcc
|
- brew install automake libtool gcc
|
||||||
|
- ln -s /opt/homebrew/bin/gcc-?? /opt/homebrew/bin/gcc
|
||||||
test_script:
|
test_script:
|
||||||
- ./ci/cirrus.sh
|
- ./ci/cirrus.sh
|
||||||
<< : *CAT_LOGS
|
<< : *CAT_LOGS
|
||||||
|
@ -43,6 +43,13 @@ esac
|
|||||||
|
|
||||||
env >> test_env.log
|
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
|
if [ -n "${CC+x}" ]; then
|
||||||
# The MSVC compiler "cl" doesn't understand "-v"
|
# The MSVC compiler "cl" doesn't understand "-v"
|
||||||
$CC -v || true
|
$CC -v || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user