Fix gcc-arm-embedded for m1 mac (#24515)

* Fix gcc-arm-embedded for m1 mac

* put in /tmp

* update comment

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 01a237ef02
This commit is contained in:
Ross Fisher 2022-05-13 05:12:59 -04:00 committed by GitHub
parent aefc73be1b
commit bc986e10ff
1 changed files with 6 additions and 1 deletions

View File

@ -52,9 +52,14 @@ brew "zeromq"
brew "protobuf"
brew "protobuf-c"
brew "swig"
cask "gcc-arm-embedded"
EOS
# Install gcc-arm-embedded 10.3-2021.10. 11.x is broken on M1 Macs with Xcode 13.3~
brew uninstall gcc-arm-embedded || true
curl -L https://github.com/Homebrew/homebrew-cask/raw/d407663b8017a0a062c7fc0b929faf2e16abd1ff/Casks/gcc-arm-embedded.rb > /tmp/gcc-arm-embedded.rb
brew install --cask /tmp/gcc-arm-embedded.rb
rm /tmp/gcc-arm-embedded.rb
echo "[ ] finished brew install t=$SECONDS"
BREW_PREFIX=$(brew --prefix)