Skip to content

Publish independently built linker inputs - #548

Merged
lukewilliamboswell merged 2 commits into
mainfrom
feat/linker-inputs
Nov 11, 2026
Merged

lukewilliamboswell merged 2 commits into
mainfrom
feat/linker-inputs

Conversation

@lukewilliamboswell

@lukewilliamboswell lukewilliamboswell commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

basic-cli needs PIC-compatible runtime inputs for Roc's upcoming static PIE linker policy. This adds an independent producer and content-addressed release format so those inputs can move out of Git and be reused across platform builds.

The Linker inputs workflow builds PIC musl 1.2.6 and LLVM libunwind for Linux x86-64 and ARM64, plus the existing Windows support archive. A recorded musl startup adjustment supports both older fixed-address executable links and static PIE. Each archive carries source identity, file hashes, provenance, and original licenses. Publication requires successful native checks for all three targets and produces a SHA-256-pinned consumer lock under an immutable prerelease tag.

The Python consumer verifies archive contents and restores inputs through a shared SHA-256 cache. Per-hash locks serialize concurrent downloads, and staged files are closed before publication on Windows.

Validation passed for all three native producers, including Linux function pointers, TLS, threads, fixed-address and PIE startup, and Windows runtime initialization. All five cache/archive regression tests pass. The subsequent platform migration will consume a published lock, enable PIC host builds, and remove the six tracked Linux binaries.

@lukewilliamboswell
lukewilliamboswell merged commit 63cc5f7 into main Nov 11, 2026
36 checks passed
@lukewilliamboswell
lukewilliamboswell deleted the feat/linker-inputs branch November 11, 2026 03:56
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