Skip to content

Commit 00b9076

Browse files
alexcrichtongnzlbg
authored andcommitted
Fix build of documentation in libstd
Ensure we've always got a macro defined! Closes #603
1 parent 8f35d53 commit 00b9076

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

coresimd/arm/armclang.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ use stdsimd_test::assert_instr;
3939
#[inline(always)]
4040
#[rustc_args_required_const(0)]
4141
pub unsafe fn __breakpoint(val: i32) {
42+
// Ensure that this compiles correctly on non-arm architectures, so libstd
43+
// doc builds work. The proper macro will shadow this definition below.
44+
#[allow(unused_macros)]
45+
macro_rules! call {
46+
($e:expr) => {()}
47+
}
48+
4249
#[cfg(target_arch = "arm")]
4350
macro_rules! call {
4451
($imm8:expr) => {

0 commit comments

Comments
 (0)