Skip to content

cli: Remove program arch options - #4295

Merged
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:cli-remove-program-arch-options
Mar 10, 2026
Merged

cli: Remove program arch options#4295
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:cli-remove-program-arch-options

Conversation

@acheroncrypto

Copy link
Copy Markdown
Collaborator

Problem

cargo-build-bpf no longer exists, which makes the --arch option in various commands useless. It might also be confused with the --arch option of the underlying cargo-build-sbf command:

--arch <arch> Build for the given target architecture [default: v0] [possible values: v0, v1, v2, v3, v4]

Summary of changes

Remove the program --arch options from all the commands that have it.


Related: Hardcoding build tools version (#4098) is far from ideal because:

  • The user will get an error after passing -- --tools-version to the underlying command, which we support.
  • Solana's build tools also control the Rust version used, meaning it may be even necessary to change this to make builds work by default (e.g. in the case of MSRV bumps, which the Rust community doesn't consider breaking)

However, this problem is out-of-scope of this PR; I might make another PR to handle this better.

@vercel

vercel Bot commented Mar 8, 2026

Copy link
Copy Markdown

@acheroncrypto is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@jamie-osec

Copy link
Copy Markdown
Collaborator

Made an issue to discuss the build-tools version #4298

@nutafrost nutafrost moved this to Security Review Required in Anchor 1.0 Mar 9, 2026
@acheroncrypto
acheroncrypto merged commit 70f7203 into otter-sec:master Mar 10, 2026
170 of 173 checks passed
@github-project-automation github-project-automation Bot moved this from Security Review Required to Done in Anchor 1.0 Mar 10, 2026
akash-osec pushed a commit to akash-osec/anchor that referenced this pull request Mar 25, 2026
@jamie-osec jamie-osec added this to the v1.0.0 milestone Jun 23, 2026
akash-osec pushed a commit to akash-osec/anchor that referenced this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants