Skip to content

build(release): switch x86_64 Linux release artifacts to musl - #4391

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:debug_exe_zip_maker_size
Nov 1, 2026
Merged

rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:debug_exe_zip_maker_size

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Previously, x86_64 Linux release artifacts linked static glibc,
inflating exe_zip_maker to 1.37 MB with over 840 KB of static
glibc code and tables.

Switch the x86_64 Linux release platform and toolchain registration
to x86_64-unknown-linux-musl linked with rust-lld. This matches
the other Linux architectures, avoids host glibc and ld.bfd quirks,
and shrinks the statically linked binary to ~603 KB while preserving
portability across Linux distributions.

Work towards #4216

Previously, `x86_64` Linux release artifacts linked static `glibc`,
inflating `exe_zip_maker` to 1.37 MB with over 840 KB of static
`glibc` code and tables.

Switch the `x86_64` Linux release platform and toolchain registration
to `x86_64-unknown-linux-musl` linked with `rust-lld`. This matches
the other Linux architectures, avoids host `glibc` and `ld.bfd` quirks,
and shrinks the statically linked binary to ~603 KB while preserving
portability across Linux distributions.

Work towards bazel-contrib#4216
@rickeylev
rickeylev requested a review from aignas as a code owner November 1, 2026 09:18
@rickeylev

Copy link
Copy Markdown
Collaborator Author

AI Disclosure:

  • Human oversight (human-reviewed): @rickeylev directed the
    investigation into exe_zip_maker binary size, approved switching
    x86_64 Linux release artifacts to musl, and reviews all changes.
  • Review handling: @rickeylev and an AI coding agent collaborate on
    review feedback, with all code changes and replies reviewed by the
    human author before submission.

This is an automatically generated agent comment.

@rickeylev
rickeylev merged commit 6f97c5f into bazel-contrib:main Nov 1, 2026
13 checks passed
@rickeylev
rickeylev deleted the debug_exe_zip_maker_size branch November 1, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant