From ddde9481e3c4fd3fb1d09d3e8a54e8209eedf463 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 24 Dec 2024 08:35:28 -0500 Subject: [PATCH] Set glibc versions for standalone installers (#10142) ## Summary Per Discord, it sounds like `cargo-dist` will assume that 2.31 is our minimum glibc version, since we're building our own binaries. (You can confirm this by looking at [uv-installer.sh](https://github.com/astral-sh/uv/releases/download/0.5.11/uv-installer.sh).) `cargo-dist` now supports specifying a glibc override for each target: https://opensource.axo.dev/cargo-dist/book/reference/config.html#min-glibc-version. This is great, since we use 2.17 everywhere, but 2.28 for ARM. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 902b7e4a4..706789b11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -334,3 +334,9 @@ github-custom-job-permissions = { "build-docker" = { packages = "write", content install-updater = false # Path that installers should place binaries in install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] + +[workspace.metadata.dist.min-glibc-version] +# Override glibc version for specific target triplets. +aarch64-unknown-linux-gnu = "2.28" +# Override all remaining glibc versions. +"*" = "2.17"