Skip to content

Commit

Permalink
fix: allow building codspeed-rust on unsupported architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Sep 13, 2024
1 parent ed05600 commit 7268615
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/codspeed/src/request/arch/unsupported.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub type Value = u32;

#[inline(always)]
pub unsafe fn send_client_request(_default: Value, _args: &[Value; 6]) -> Value {
panic!("Not implemented for this architecture");
}
9 changes: 9 additions & 0 deletions crates/codspeed/src/request/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ mod arch;
#[cfg(target_arch = "aarch64")]
#[path = "arch/aarch64.rs"]
mod arch;

#[cfg(not(any(
target_arch = "x86_64",
target_arch = "x86",
target_arch = "arm",
target_arch = "aarch64"
)))]
#[path = "arch/unsupported.rs"]
mod arch;

0 comments on commit 7268615

Please sign in to comment.