From 85c51f5787895c97220d3a2f8ce9be6b9cbdd6c6 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 23 Oct 2020 00:46:30 -0700 Subject: [PATCH] Only activate legacy program feature for the solana-sdk crate --- ci/test-stable.sh | 2 +- sdk/cargo-build-bpf/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/test-stable.sh b/ci/test-stable.sh index bd50c27d6..7591816b9 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -41,7 +41,7 @@ test-stable) ;; test-stable-perf) # BPF solana-sdk legacy compile test - ./cargo-build-bpf --manifest-path sdk/Cargo.toml --no-default-features --features program + ./cargo-build-bpf --manifest-path sdk/Cargo.toml # BPF program tests _ make -C programs/bpf/c tests diff --git a/sdk/cargo-build-bpf/src/main.rs b/sdk/cargo-build-bpf/src/main.rs index b08d37289..aaf005f7e 100644 --- a/sdk/cargo-build-bpf/src/main.rs +++ b/sdk/cargo-build-bpf/src/main.rs @@ -114,7 +114,7 @@ fn build_bpf(config: Config) { } }; - let legacy_program_feature_present = root_package.features.contains_key("program"); + let legacy_program_feature_present = root_package.name == "solana-sdk"; let root_package_dir = &root_package.manifest_path.parent().unwrap_or_else(|| { eprintln!( "Unable to get directory of {}",