Skip to content

Commit 7268615

Browse files
committed
fix: allow building codspeed-rust on unsupported architectures
1 parent ed05600 commit 7268615

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub type Value = u32;
2+
3+
#[inline(always)]
4+
pub unsafe fn send_client_request(_default: Value, _args: &[Value; 6]) -> Value {
5+
panic!("Not implemented for this architecture");
6+
}

crates/codspeed/src/request/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ mod arch;
2727
#[cfg(target_arch = "aarch64")]
2828
#[path = "arch/aarch64.rs"]
2929
mod arch;
30+
31+
#[cfg(not(any(
32+
target_arch = "x86_64",
33+
target_arch = "x86",
34+
target_arch = "arm",
35+
target_arch = "aarch64"
36+
)))]
37+
#[path = "arch/unsupported.rs"]
38+
mod arch;

0 commit comments

Comments
 (0)