Skip to content

Commit c4e749f

Browse files
committed
Comment out HWCAP2_* constants on AArch64
They are missing in the CI’s linux-api-headers, and not widely available yet either.
1 parent 09ec6a6 commit c4e749f

File tree

1 file changed

+11
-9
lines changed
  • src/unix/linux_like/linux/gnu/b64/aarch64

1 file changed

+11
-9
lines changed

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

+11-9
Original file line numberDiff line numberDiff line change
@@ -695,15 +695,17 @@ pub const HWCAP_SSBS: ::c_ulong = 1 << 28;
695695
pub const HWCAP_SB: ::c_ulong = 1 << 29;
696696
pub const HWCAP_PACA: ::c_ulong = 1 << 30;
697697
pub const HWCAP_PACG: ::c_ulong = 1 << 31;
698-
pub const HWCAP2_DCPODP: ::c_ulong = 1 << 0;
699-
pub const HWCAP2_SVE2: ::c_ulong = 1 << 1;
700-
pub const HWCAP2_SVEAES: ::c_ulong = 1 << 2;
701-
pub const HWCAP2_SVEPMULL: ::c_ulong = 1 << 3;
702-
pub const HWCAP2_SVEBITPERM: ::c_ulong = 1 << 4;
703-
pub const HWCAP2_SVESHA3: ::c_ulong = 1 << 5;
704-
pub const HWCAP2_SVESM4: ::c_ulong = 1 << 6;
705-
pub const HWCAP2_FLAGM2: ::c_ulong = 1 << 7;
706-
pub const HWCAP2_FRINT: ::c_ulong = 1 << 8;
698+
// TODO: enable these again once linux-api-headers are up to date enough on CI.
699+
// See discussion in https://github.com/rust-lang/libc/pull/1638
700+
//pub const HWCAP2_DCPODP: ::c_ulong = 1 << 0;
701+
//pub const HWCAP2_SVE2: ::c_ulong = 1 << 1;
702+
//pub const HWCAP2_SVEAES: ::c_ulong = 1 << 2;
703+
//pub const HWCAP2_SVEPMULL: ::c_ulong = 1 << 3;
704+
//pub const HWCAP2_SVEBITPERM: ::c_ulong = 1 << 4;
705+
//pub const HWCAP2_SVESHA3: ::c_ulong = 1 << 5;
706+
//pub const HWCAP2_SVESM4: ::c_ulong = 1 << 6;
707+
//pub const HWCAP2_FLAGM2: ::c_ulong = 1 << 7;
708+
//pub const HWCAP2_FRINT: ::c_ulong = 1 << 8;
707709

708710
// Syscall table
709711
pub const SYS_io_setup: ::c_long = 0;

0 commit comments

Comments
 (0)