build_system_info: Use the host glibc version only

Use the host glibc version only to avoid errors with
brew tests --no-compat
This commit is contained in:
Shaun Jackman 2021-04-01 15:04:40 -07:00
parent 11bfba1762
commit 0db0db9516
No known key found for this signature in database
GPG Key ID: D4ED5223F4E57996

View File

@ -21,13 +21,7 @@ class DevelopmentTools
end end
def build_system_info def build_system_info
brewed_glibc_version = begin generic_build_system_info.merge "glibc_version" => OS::Linux::Glibc.system_version
Formula["glibc"].any_installed_version
rescue FormulaUnavailableError
nil
end
glibc_version = brewed_glibc_version || OS::Linux::Glibc.system_version
generic_build_system_info.merge "glibc_version" => glibc_version
end end
end end
end end