Implement --build-for in addition to --platform
Metadata
Current evaluation
Closed without implementation or an associated pull request. No fix or merge details were provided, indicating the feature request was likely abandoned or deferred.
Suggested action: —
No scores available.
Issue body
### What needs to get done
When `platforms:` is used, craft applications should be able to select build platforms using `--build-for`, according to the following rules:
- If there's only one platform entry with the specified target architecture, choose that one.
- If that results in more than one entry, and there's one entry using the architecture name as the platform name, choose that one.
- Otherwise fail with an error.
### Why it needs to get done
`--build-for` is extensively used and there's a reasonable way to map it to pick platform entries.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation or an associated pull request. No fix or merge details were provided, indicating the feature request was likely abandoned or deferred. | |
| qwen/qwen3.6-35b-a3b | — | — | Requesting --build-for platform selection was closed as superseded. A maintainer confirmed that existing platforms configuration syntax already handles the desired behavior, resolving the need for new code. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | The --build-for platform selection feature was closed without implementation. Maintainers discussed mapping rules and logged an internal ticket, but the request was ultimately abandoned. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #360 Allow build-for "all" for platform-independent builds. | craft-application | closed | Closed without implementation due to inactivity. The request to support all as a build-for architecture for platform-independent builds was abandoned. No resolution, merge, or follow-up PR was created. | |
| #355 Allow filtering platforms to build-for | rockcraft | closed | Adding a --platform flag for build target filtering was closed without implementation or discussion. The request was abandoned. | |
| #83 Support "platforms" for the build plans | craft-application | closed | Closed without implementation or discussion. The request to add platform support to build plans was abandoned or superseded, as shown by zero comments and an empty description. | |
| #1649684 Support `build` for parts | snapcraft (launchpad) | closed | Closed without resolution. Zero comments and no linked pull requests indicate the feature request was abandoned. |