Skip to content

Commit a79769d

Browse files
authored
[Runner] Fix glibc version of x86 architectures (#393)
1 parent ac68310 commit a79769d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Runner.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,12 +1283,10 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString;
12831283
# GNU_LIBC_VERSION` would return, if it worked.
12841284
if libc(platform) === "glibc"
12851285
# This should be kept in sync with the version of glibc used in
1286-
# https://github.com/JuliaPackaging/Yggdrasil/blob/master/0_RootFS/gcc_common.jl
1287-
if arch(platform) in ("x86_64", "i686")
1288-
mapping["GNU_LIBC_VERSION"] = "glibc 2.12.2"
1289-
elseif arch(platform) in ("armv7l", "aarch64")
1286+
# https://github.com/JuliaPackaging/Yggdrasil/blob/master/0_RootFS/gcc_sources.jl
1287+
if arch(platform) in ("armv7l", "aarch64")
12901288
mapping["GNU_LIBC_VERSION"] = "glibc 2.19"
1291-
elseif arch(platform) === "powerpc64le"
1289+
elseif arch(platform) in ("x86_64", "i686", "powerpc64le")
12921290
mapping["GNU_LIBC_VERSION"] = "glibc 2.17"
12931291
end
12941292
end

0 commit comments

Comments
 (0)