On Fri, May 10, 2024 at 09:00:14AM +0200, Patrick Steinhardt wrote: > > We'll eventually have to bump "gcc-13" to "gcc-14" here, and so on. I > > don't think we ever cared about gcc-13 in particular; it's just that > > older versions of the runner image had some ancient version which we > > wanted to avoid. > > As an alternative we could munge PATH such that Homebrew's GCC is found > before Apple's. Ideally, yeah, but it's not just a PATH issue. AFAICT there literally is no "gcc" in any PATH, only the version specific ones (even if you "brew install gcc"). So you'd need something like: for i in /usr/local/bin/gcc-* do # rely on sorting of glob to do last-one-wins gcc=$i done -Peff