Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4056cb4

Browse files
authored
Remove entrypoint bpf cfg check (#852)
1 parent 4394cb1 commit 4056cb4

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

associated-token-account/program/src/entrypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,

examples/rust/cross-program-invocation/src/entrypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,

examples/rust/custom-heap/src/entrypoint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo,
@@ -40,7 +40,7 @@ unsafe impl std::alloc::GlobalAlloc for BumpAllocator {
4040
}
4141
}
4242

43-
#[cfg(not(test))]
43+
#[cfg(target_arch = "bpf")]
4444
#[global_allocator]
4545
static A: BumpAllocator = BumpAllocator;
4646

examples/rust/logging/src/entrypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,

examples/rust/sysvar/src/entrypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,

examples/rust/transfer-lamports/src/entrypoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Program entrypoint
22
3-
#![cfg(all(target_arch = "bpf", not(feature = "no-entrypoint")))]
3+
#![cfg(not(feature = "no-entrypoint"))]
44

55
use solana_program::{
66
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey,

0 commit comments

Comments
 (0)