Skip to content

Commit 367ccf4

Browse files
committed
cpu: Don't guard aarch64/arm modules on endianness.
1 parent e00c8b9 commit 367ccf4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cpu.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,13 @@ mod features {
186186
const _: () = assert!(size_of::<Features>() == 0);
187187

188188
cfg_if::cfg_if! {
189-
if #[cfg(all(target_arch = "aarch64", target_endian = "little"))] {
189+
// Don't guard the aarch64/arm branches on `target_endian = "little"`
190+
// because each module contains static assertions for endianness that
191+
// we don't want to skip over.
192+
if #[cfg(target_arch = "aarch64")] {
190193
pub mod aarch64;
191194
use aarch64::featureflags;
192-
} else if #[cfg(all(target_arch = "arm", target_endian = "little"))] {
195+
} else if #[cfg(target_arch = "arm")] {
193196
pub mod arm;
194197
use arm::featureflags;
195198
} else if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {

0 commit comments

Comments
 (0)