Skip to content

Commit 6c5b73d

Browse files
committed
Always use GCC >5 when building Rust
Rust requires glibc 2.17, which we only have with GCC >5.
1 parent d922efe commit 6c5b73d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Rootfs.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,9 @@ function gcc_version(p::AbstractPlatform,
480480

481481
# Rust on Windows requires binutils 2.25 (it invokes `ld` with `--high-entropy-va`),
482482
# which we bundle with GCC 5.
483-
if :rust in compilers && Sys.iswindows(p)
483+
# Rust requires glibc 2.17 (https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html),
484+
# which we only use for GCC >5
485+
if :rust in compilers
484486
GCC_builds = filter(b -> getversion(b) v"5", GCC_builds)
485487
end
486488

0 commit comments

Comments
 (0)