Merge pull request #13899 from Bo98/no-gcc

extend/os/linux/development_tools: handle no /usr/bin/gcc
This commit is contained in:
Bo Anderson 2022-09-20 14:31:12 +01:00 committed by GitHub
commit 2cacd04743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]) }