Skip to content

feat(core): TargetProbe drives engine selection; add Engine::MingwLld (#184) - #190

Merged
zackees merged 3 commits into
mainfrom
feat/meta-work-184
Sep 18, 2026
Merged

zackees merged 3 commits into
mainfrom
feat/meta-work-184

Conversation

@zackees

@zackees zackees commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #184

TargetProbe now drives engine selection, and this adds Engine::MingwLld (the lld-mingw bridge route). The cross-ship windows-gnu lane links a MinGW hello-world with the host-built reld through clang --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/usr in soldr's package. clang's MinGW driver doesn't look there on its own, so without the flags the compile fails with stdio.h not found.

Local verification

  • cargo fmt --all -- --check: clean
  • cargo test -p reld-core --lib: 235 passed
  • cargo test -p reld --test bridge-route: 9 passed
  • cargo clippy --workspace --all-targets -- -D warnings: clean
  • pytest ci/tests/test_linker_modes.py ci/tests/test_linker_modes_workflow.py ci/tests/test_cross_ship_metrics.py: 32 passed
  • MinGW link via clang --target=x86_64-w64-mingw32 --ld-path=target/release/reld: produced a PE32+ (optional header magic 0x20b), and the log shows reld: engine=lld-mingw (bridge, reason=target:pe-mingw)
  • Native smoke reld -flavor gnu --version: engine=reld (native, reason=default), Reld 0.1.0 ... (compatible with GNU linkers)

act evidence (cross-ship cross-build, matrix windows-gnu, image with clang-18)

Success - Main Setup Soldr (prepare cross toolchain) [1m20s]
Success - Main Cross-compile reld (release) via blessed front door [1m28s]
Success - Main Verify cross artifact format
Success - Main Link a MinGW hello-world with reld (linux host, reld#184) [1m24s]
  reld: engine=lld-mingw (bridge, reason=target:pe-mingw) -> .../rust-lld
Success - Main actions/upload-artifact@v4
Job succeeded

🤖 Generated with Claude Code

zackees and others added 3 commits September 17, 2026 23:22
…#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]>
…ld hello link (#184)

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees merged commit 78083c6 into main Sep 18, 2026
25 checks passed
@zackees
zackees deleted the feat/meta-work-184 branch September 18, 2026 06:48
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.

routing: TargetProbe drives engine selection, plus Engine::MingwLld (reld#123 Phase 3, step 2)

1 participant