Skip to content

Commit

Permalink
Only compile bench_program_alu for x86_64 (#34282)
Browse files Browse the repository at this point in the history
Ignore bench if not x86_64
  • Loading branch information
CriesofCarrots authored Nov 30, 2023
1 parent c3323c0 commit 5085ee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions programs/sbf/benches/bpf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![cfg(feature = "sbf_c")]
#![allow(clippy::uninlined_format_args)]
#![allow(clippy::arithmetic_side_effects)]
#![cfg_attr(not(target_arch = "x86_64"), allow(dead_code, unused_imports))]

use {
solana_rbpf::memory_region::MemoryState,
Expand Down Expand Up @@ -101,6 +102,7 @@ fn bench_program_create_executable(bencher: &mut Bencher) {
}

#[bench]
#[cfg(target_arch = "x86_64")]
fn bench_program_alu(bencher: &mut Bencher) {
let ns_per_s = 1000000000;
let one_million = 1000000;
Expand Down

0 comments on commit 5085ee9

Please sign in to comment.