build_info: Add glibc_version for Linux
This commit is contained in:
parent
9fb771d2a4
commit
11bfba1762
@ -19,5 +19,15 @@ class DevelopmentTools
|
||||
def default_compiler
|
||||
:gcc
|
||||
end
|
||||
|
||||
def build_system_info
|
||||
brewed_glibc_version = begin
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user