cirrus: fix installation of gcc 10 on macOS
Cirrus CI switched macOS machines to M1 where "brew install gcc@10" fails due to architecture mismatch. I'm not sure if it's possible to install gcc 10 natively for ARM. Let's work around this by installing the x86_64 compatibility layer. Apparently we need to install a x86_64 Homebrew to install x86_64 packages.
This commit is contained in:
parent
e52f64229a
commit
ecae85f8af
|
@ -41,7 +41,10 @@ macos_task:
|
|||
env:
|
||||
CXX: /usr/local/opt/llvm@11/bin/clang++
|
||||
- name: macos_gcc
|
||||
gcc_script: brew install gcc@10
|
||||
gcc_script:
|
||||
- /usr/sbin/softwareupdate --install-rosetta --agree-to-license
|
||||
- arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
- arch -x86_64 /usr/local/bin/brew install gcc@10
|
||||
env:
|
||||
CXX: g++-10
|
||||
test_script: make -j4 test
|
||||
|
|
Loading…
Reference in New Issue
Block a user