RHEL 8-compatible linux-gnu build in --cross

x86_64-unknown-linux-gnu joins the cross set, linked with the messense
toolchain whose sysroot caps the highest referenced symbol at
GLIBC_2.28 - RHEL 8's own glibc, audited on both binaries - with every
NEEDED library in a base install. The static musl build runs on RHEL 8
too; the gnu build exists for shops that require a native glibc link.
Setup and the symbol-audit command are in RELEASING.md.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-25 10:56:55 -07:00
1 parent a9d73913f5
commit 382c114492
2 files changed
+21 -3

No files matched your search

+12 -2
View File
@@ -11,16 +11,26 @@ it lives in the appendix at the bottom.
`tools/release.sh --cross` adds, next to the host (Apple Silicon) pair:
`x86_64-apple-darwin` (Intel Mac), `x86_64-unknown-linux-musl` (any x86-64
Linux — statically linked, no glibc dependency) and `x86_64-pc-windows-gnu`
(`.exe`, depends only on DLLs Windows 10+ ships). The `.vsix` is
(`.exe`, depends only on DLLs Windows 10+ ships) and
`x86_64-unknown-linux-gnu` — the glibc-linked build for enterprise
distributions: the messense toolchain's sysroot keeps the highest
referenced symbol at `GLIBC_2.28`, which is RHEL 8's own glibc, so it
runs on RHEL 8.x (verified for 8.10 by symbol audit:
`x86_64-unknown-linux-gnu-objdump -T dist/vfmt-server-* | grep -o
'GLIBC_[0-9.]*' | sort -Vu | tail -1`; every NEEDED library is in a base
install). The static musl build runs there too — the gnu build exists
for shops that require a native glibc link. The `.vsix` is
platform-independent JavaScript; only the binaries are per-platform.
One-time setup on the build Mac (2026-08-25, all via Homebrew):
```bash
brew install rustup mingw-w64
brew install messense/macos-cross-toolchains/x86_64-unknown-linux-gnu
/opt/homebrew/opt/rustup/bin/rustup toolchain install stable --profile minimal
/opt/homebrew/opt/rustup/bin/rustup target add --toolchain stable \
x86_64-apple-darwin x86_64-unknown-linux-musl x86_64-pc-windows-gnu
x86_64-apple-darwin x86_64-unknown-linux-musl x86_64-unknown-linux-gnu \
x86_64-pc-windows-gnu
```
Notes the script encodes so nobody rediscovers them: the Homebrew *rust*