Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions sdk/cargo-build-bpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ fn build_bpf(config: Config) {
}
};

let legacy_program_feature_present = root_package.features.contains_key("program");
let root_package_dir = &root_package.manifest_path.parent().unwrap_or_else(|| {
eprintln!(
"Unable to get directory of {}",
Expand Down Expand Up @@ -141,9 +140,6 @@ fn build_bpf(config: Config) {
if !config.features.is_empty() {
println!("Features: {}", config.features.join(" "));
}
if legacy_program_feature_present {
println!("Legacy program feature detected");
}

let xargo_build = config.bpf_sdk.join("rust/xargo-build.sh");
let mut spawn_args = vec![];
Expand All @@ -155,12 +151,6 @@ fn build_bpf(config: Config) {
spawn_args.push("--features");
spawn_args.push(feature);
}
if legacy_program_feature_present {
if !config.no_default_features {
spawn_args.push("--no-default-features");
}
spawn_args.push("--features=program");
}
spawn(&config.bpf_sdk.join(xargo_build), &spawn_args);

if let Some(program_name) = program_name {
Expand Down