Skip to content

Commit cac12e8

Browse files
committed
fix tests to work with --feature c
1 parent 07cf3b4 commit cac12e8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/aarch64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
//!
2323
//! The original `lse.S` has some truly horrifying code that expects to be compiled multiple times with different constants.
2424
//! We do something similar, but with macro arguments.
25+
#![cfg_attr(feature = "c", allow(unused_macros))] // avoid putting the macros into a submodule
2526

2627
// We don't do runtime dispatch so we don't have to worry about the `__aarch64_have_lse_atomics` global ctor.
2728

src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ pub mod mem;
5757
#[cfg(target_arch = "arm")]
5858
pub mod arm;
5959

60-
#[cfg(all(
61-
target_arch = "aarch64",
62-
not(feature = "no-asm"),
63-
not(feature = "optimized-c")
64-
))]
60+
#[cfg(all(target_arch = "aarch64", not(feature = "no-asm"),))]
6561
pub mod aarch64;
6662

6763
#[cfg(all(

0 commit comments

Comments
 (0)