From 6fe7c4e4cf3f609665e982ae5a930e603a01ed2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Tue, 3 Dec 2024 10:32:00 +0000 Subject: [PATCH] [Runner] Fix glibc version of x86 architectures --- src/Runner.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Runner.jl b/src/Runner.jl index 026ab5c6..8106cc09 100644 --- a/src/Runner.jl +++ b/src/Runner.jl @@ -1283,12 +1283,10 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString; # GNU_LIBC_VERSION` would return, if it worked. if libc(platform) === "glibc" # This should be kept in sync with the version of glibc used in - # https://github.com/JuliaPackaging/Yggdrasil/blob/master/0_RootFS/gcc_common.jl - if arch(platform) in ("x86_64", "i686") - mapping["GNU_LIBC_VERSION"] = "glibc 2.12.2" - elseif arch(platform) in ("armv7l", "aarch64") + # https://github.com/JuliaPackaging/Yggdrasil/blob/master/0_RootFS/gcc_sources.jl + if arch(platform) in ("armv7l", "aarch64") mapping["GNU_LIBC_VERSION"] = "glibc 2.19" - elseif arch(platform) === "powerpc64le" + elseif arch(platform) in ("x86_64", "i686", "powerpc64le") mapping["GNU_LIBC_VERSION"] = "glibc 2.17" end end