Skip to content

Commit 75aeaff

Browse files
committed
Change aarch64_linux module and lse tests to have the same gating
Trying to run testcrate on non-linux aarch64 currently hits a compilation error. Make this test linux-only, to be consistent with the `aarch64_linux` module that it depends on. Additionally, enable the `aarch64_linux` module for `target_arch = "arm64ec"` to be the same as these tests.
1 parent 7240849 commit 75aeaff

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ pub mod arm;
6262
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))]
6363
pub mod aarch64;
6464

65-
#[cfg(all(target_arch = "aarch64", target_os = "linux", not(feature = "no-asm"),))]
65+
#[cfg(all(
66+
any(target_arch = "aarch64", target_arch = "arm64ec"),
67+
target_os = "linux",
68+
not(feature = "no-asm"),
69+
))]
6670
pub mod aarch64_linux;
6771

6872
#[cfg(all(

testcrate/tests/lse.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(decl_macro)] // so we can use pub(super)
22
#![cfg(all(
33
any(target_arch = "aarch64", target_arch = "arm64ec"),
4+
target_os = "linux",
45
not(feature = "no-asm")
56
))]
67

0 commit comments

Comments
 (0)