Skip to content

Commit 10b0fcd

Browse files
committed
Fix std build failure on non-x86 architectures
This is more fallout from #1486
1 parent aa94a08 commit 10b0fcd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: crates/std_detect/src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
// Remove this as soon as the stdarch submodule is updated on nightly.
2525
#![allow(stable_features)]
2626
#![feature(stdsimd)]
27-
#![cfg_attr(feature = "rustc-dep-of-std", feature(stdarch_x86_has_cpuid))]
27+
#![cfg_attr(
28+
all(
29+
any(target_arch = "x86", target_arch = "x86_64"),
30+
feature = "rustc-dep-of-std"
31+
),
32+
feature(stdarch_x86_has_cpuid)
33+
)]
2834

2935
#[cfg(test)]
3036
#[macro_use]

0 commit comments

Comments
 (0)