Repository navigation
feat(core): TargetProbe drives engine selection; add Engine::MingwLld (#184) - #190
Merged
Merged
Conversation
…#184) Route link-target resolution through TargetProbe, add the lld-mingw engine (ld.lld with probed -m emulation), route foreign ELF arches and INSERT linker scripts to lld, and link/run a MinGW hello-world in cross-ship. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ng (#184) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ld hello link (#184) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Closes #184
TargetProbe now drives engine selection, and this adds
Engine::MingwLld(thelld-mingwbridge route). The cross-shipwindows-gnulane links a MinGW hello-world with the host-built reld throughclang --ld-path. It checks that the result is PE32+ and that the invocation log records"engine":"lld-mingw", then ships the exe to the Windows host-run.The cross-ship step also points clang at the MinGW headers and libs, which live under
x86_64-w64-mingw32/sysroot/usrin soldr's package. clang's MinGW driver doesn't look there on its own, so without the flags the compile fails withstdio.hnot found.Local verification
cargo fmt --all -- --check: cleancargo test -p reld-core --lib: 235 passedcargo test -p reld --test bridge-route: 9 passedcargo clippy --workspace --all-targets -- -D warnings: cleanpytest ci/tests/test_linker_modes.py ci/tests/test_linker_modes_workflow.py ci/tests/test_cross_ship_metrics.py: 32 passedclang --target=x86_64-w64-mingw32 --ld-path=target/release/reld: produced a PE32+ (optional header magic 0x20b), and the log showsreld: engine=lld-mingw (bridge, reason=target:pe-mingw)reld -flavor gnu --version:engine=reld (native, reason=default),Reld 0.1.0 ... (compatible with GNU linkers)act evidence (cross-ship
cross-build, matrixwindows-gnu, image with clang-18)🤖 Generated with Claude Code