Skip to content

Make the cross toolchain optional so runner needs none - #267

Merged
kali merged 1 commit into
mainfrom
feat/runner-without-toolchain
Aug 16, 2026
Merged

Make the cross toolchain optional so runner needs none#267
kali merged 1 commit into
mainfrom
feat/runner-without-toolchain

Conversation

@kali

@kali kali commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

dinghy runner ships a prebuilt binary over ssh and needs no compiler, linker or sysroot, yet probe() refused to assemble any [platforms.*] without a resolvable toolchain -- remote-only setups had to point toolchain= at an unused toolchain just to get past assembly. Platforms now carry an Option: a missing or gcc-less toolchain yields a remote-run-only platform, rustc_triple is tracked on its own for device matching, and setup_env/strip degrade (skip / clear error).

@kali
kali requested a review from fredszaq August 16, 2026 13:01

@fredszaq fredszaq left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good to me appart for the LLM comments on every new function that repeat themselves and don't have much plus value.

Out of curiosity, what is the use case you have we you don't have a toolchain but still want to use the runner to run stuff ?

pub id: String,
pub toolchain: ToolchainConfig,
pub rustc_triple: String,
/// Cross toolchain used to build and strip for this platform. `None` for a

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comments on that file are a bit too much (hello claude, please don't restate the same thing in three places for adding support of and edge case. these comments are just noise at this point)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i'll do a chatty comment reduction pass. good call. i may actually pull tract's claude.md in here if you don't mind (or at least the section about chatty comments).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't see a reason not to add a claude.md ^

@kali

kali commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator Author

The use case is, build something on gha, run it on a machine that can not run the gha agent. So I have a "sidekick" that runs the agent, which use dinghy to project the bench on the actual target. The sidekick is typically a raspi.

dinghy runner ships a prebuilt binary over ssh and needs no compiler,
linker or sysroot, yet probe() refused to assemble any [platforms.*]
without a resolvable toolchain -- remote-only setups had to point
toolchain= at an unused toolchain just to get past assembly. Platforms
now carry an Option<ToolchainConfig>: a missing or gcc-less toolchain
yields a remote-run-only platform, rustc_triple is tracked on its own
for device matching, and setup_env/strip degrade (skip / clear error).
@kali
kali force-pushed the feat/runner-without-toolchain branch from 756ac6a to 95d2a5f Compare August 16, 2026 16:36
@kali
kali merged commit df59ded into main Aug 16, 2026
10 checks passed
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.

2 participants