Merge pull request #20607 from Homebrew/fortran-replace-ohai

Fix undefined method 'ohai'
This commit is contained in:
Mike McQuaid 2025-09-01 14:51:29 +00:00 committed by GitHub
commit 47e07fb269
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,7 @@ require "development_tools"
module SharedEnvExtension
extend T::Helpers
include CompilerConstants
include Utils::Output::Mixin
requires_ancestor { Sorbet::Private::Static::ENVClass }
@ -258,7 +259,7 @@ module SharedEnvExtension
flags = []
if fc
ohai "Building with an alternative Fortran compiler", "This is unsupported."
opoo "Building with an unsupported Fortran compiler"
self["F77"] ||= fc
else
if (gfortran = which("gfortran", (HOMEBREW_PREFIX/"bin").to_s))