You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
routing: Mach-O cross from Linux via ld64.lld, and the macOS darwin-cc rule (reld#123 Phase 3, step 3) #192
Sub-issue of #123 (Phase 3). Follows #184 / PR #190, which made TargetProbe drive engine selection and added Engine::MingwLld.
Scope
1. Mach-O cross from Linux. A Mach-O link on a Linux host must route to ld64.lld, whether rustc asks for it with -Clinker-flavor=ld64.lld or clang with --target=arm64-apple-darwin --ld-path=reld. The probe signals already exist (-arch, -platform_version, Mach-O input magic); wire them to the ld64.lld engine for a non-macOS host.
2. The macOS darwin-cc rule — decided: soldr injects -Clinker-flavor=ld64.lld. rustc's default flavor for Apple targets is darwin-cc, which hands the linker clang-driver arguments (-arch, -nodefaultlibs, -mmacosx-version-min, -Wl,-wrapped flags). The alternative was having reld unwrap -Wl, and translate driver-only flags, but that makes reld own an open-ended driver-compatibility surface. Injecting the flavor is one flag in one place. So:
reld documents that it expects -Clinker-flavor=ld64.lld on Apple targets. When it receives a darwin-cc-shaped argv — a clang-driver-only flag with no ld64 equivalent — it fails loudly and names the fix, instead of mislinking or silently bridging.
Activity
ci(cross-ship): drop Apple CARGO_ENCODED_RUSTFLAGS for the host reld …
feat(core): route Mach-O by target to ld64.lld on any host; darwin-cc…