When you’re doing brew update
then brew upgrade gcc
, this technique may be helpful.
Also, what @native-api mentioned was to use a later osx_image:
setting from the documented options. By now there is actually a osx_image: xcode12.4
setting available, even though it isn’t formally documented yet.