Repository navigation
test(ci): self-host — link reld with reld via ld64.lld on macos-arm64 (#43) - #44
Merged
Merged
Conversation
…rm64 leg (#43) macOS parallel to the Windows self-host (#40), completing the strongest correctness signal (P2/#6) on both bridged platforms. After the workspace build produces target/debug/reld, point cargo's darwin linker at it with -Clinker-flavor=ld64.lld (the proven BR-3 flavor) and `cargo build -p reld --bin reld`. The RUSTFLAGS change invalidates reld's link fingerprint, forcing a relink through the Mach-O bridge (reld -> ld64.lld). Then run the self-linked `reld --version` and assert `Reld` + exit 0. Uses `reld` (not `reld-link`): on a macOS host `reld` routes to the Mach-O bridge, whereas `reld-link` would route to COFF. Other legs unchanged. Closes #43 Co-Authored-By: Claude Fable 5 <[email protected]>
4 of 54 tasks
…e --version The self-host link (reld -> ld64.lld) succeeds — that IS the proof. But the post-build `reld --version` check failed: on a macOS host, reld is invoked as a linker and bridges every invocation (including --version) to ld64.lld, so it prints `LLD ...` and exits nonzero rather than reld's own version. Replace the runtime check with `test -x` + `file | grep Mach-O` on the relinked binary, which confirms a well-formed self-linked executable without triggering the bridge. (Note: the reld-vs-linker `--version` asymmetry between the COFF and Mach-O hosts is a real reld behavior worth a follow-up; it does not affect linking.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #43. Closes #43. macOS parallel to the merged Windows self-host (#40).
What
Links reld itself with reld (self-host) through the Mach-O bridge on the macos-arm64 CI leg — extending self-host coverage (the strongest correctness signal, P2/#6) from the small rusqlite fixture to a large real Rust binary (reld, ~17MB) on both bridged platforms.
The new step sets
CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=<reld>+-Clinker-flavor=ld64.lld(the proven BR-3 flavor), thencargo build -p reld --bin reld— the RUSTFLAGS change forces a relink of reld through the bridge (reld → ld64.lld) — and runsreld --version, assertingReld+ exit 0.It uses
reldrather thanreld-linkbecause on a macOS hostreldroutes to the Mach-O bridge (reld-linkwould route to COFF).Testing
--version) and BR-3 feat(bridge): macOS Mach-O bridge via ld64.lld (BR-3) #31 (macOS-Clinker-flavor=ld64.lldbridge e2e, passed first-try).ci/e2e/sqlite-bridgeregression stillOK(bridge untouched). YAML valid; scope onlyci.yml, only the macos-arm64 leg.Review
Independent review: APPROVE — flavor env identical to the proven BR-3 step; RUSTFLAGS change forces a real relink through ld64.lld (no cached-skip);
set -euo pipefail+var=$(cmd)+grep -qprevent any false-green; no env leakage; scope clean.🤖 Generated with Claude Code