Skip to content

Commit

Permalink
Fix std build failure on non-x86 architectures
Browse files Browse the repository at this point in the history
This is more fallout from rust-lang#1486
  • Loading branch information
Amanieu committed Jan 4, 2024
1 parent aa94a08 commit 10b0fcd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/std_detect/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
// Remove this as soon as the stdarch submodule is updated on nightly.
#![allow(stable_features)]
#![feature(stdsimd)]
#![cfg_attr(feature = "rustc-dep-of-std", feature(stdarch_x86_has_cpuid))]
#![cfg_attr(
all(
any(target_arch = "x86", target_arch = "x86_64"),
feature = "rustc-dep-of-std"
),
feature(stdarch_x86_has_cpuid)
)]

#[cfg(test)]
#[macro_use]
Expand Down

0 comments on commit 10b0fcd

Please sign in to comment.