You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Although Xargo.toml is no longer needed with the new build system, cargo build-bpf still filters for bpf packages based on the presence of Xargo.toml when building at the workspace level:
My solution may not hold up forever if there is a non-bpf compatible project in the workspace that also exports a cdylib , but for now I think it is better than requiring folks to create xargo.toml files. We could flag a project as bpf compatible via a package.metadata field instead. https://doc.rust-lang.org/cargo/reference/manifest.html#the-metadata-table
Problem
Although Xargo.toml is no longer needed with the new build system,
cargo build-bpf
still filters for bpf packages based on the presence of Xargo.toml when building at the workspace level:solana/sdk/cargo-build-bpf/src/main.rs
Line 404 in e488922
Proposed Solution
I'm not sure to be honest, so a few mediocre ideas:
build-bpf
can just try to build everything the workspace[build.target]
in Cargo.toml to targetbpfel-unknown-unknown
build-bpf
, similar totest-bpf
(or just usetest-bpf
, but that feels even worse)The text was updated successfully, but these errors were encountered: