Skip to content

Commit 924fbbb

Browse files
committed
Re-enable armv7-unknown-linux-gnueabihf
1 parent 3963579 commit 924fbbb

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

ci/dox.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ dox() {
2525
if [ -z "$1" ]; then
2626
dox i686-unknown-linux-gnu
2727
dox x86_64-unknown-linux-gnu
28-
# Disabled temporarily,
29-
# See https://github.com/rust-lang/rust/issues/134511
30-
#dox armv7-unknown-linux-gnueabihf
28+
dox armv7-unknown-linux-gnueabihf
3129
dox aarch64-unknown-linux-gnu
3230
dox powerpc-unknown-linux-gnu
3331
dox powerpc64le-unknown-linux-gnu

crates/std_detect/src/detect/os/linux/arm.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ pub(crate) fn detect_features() -> cache::Initializer {
3232
}
3333
value
3434
}
35+
36+
/// Is the CPU known to have a broken NEON unit?
37+
///
38+
/// See <https://crbug.com/341598>.
39+
#[cfg(feature = "std_detect_file_io")]
40+
fn has_broken_neon(cpuinfo: &super::cpuinfo::CpuInfo) -> bool {
41+
cpuinfo.field("CPU implementer") == "0x51"
42+
&& cpuinfo.field("CPU architecture") == "7"
43+
&& cpuinfo.field("CPU variant") == "0x1"
44+
&& cpuinfo.field("CPU part") == "0x04d"
45+
&& cpuinfo.field("CPU revision") == "0"
46+
}

0 commit comments

Comments
 (0)