extend/os/linux/development_tools: handle no /usr/bin/gcc
Fixes #13896.
This commit is contained in:
parent
8de3e93715
commit
e526c65566
@ -35,7 +35,10 @@ class DevelopmentTools
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def system_gcc_too_old?
|
||||
gcc_version("/usr/bin/gcc") < OS::LINUX_GCC_CI_VERSION
|
||||
gcc = "/usr/bin/gcc"
|
||||
return true unless File.exist?(gcc)
|
||||
|
||||
gcc_version(gcc) < OS::LINUX_GCC_CI_VERSION
|
||||
end
|
||||
|
||||
sig { returns(T::Hash[String, T.nilable(String)]) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user