Skip to content

Commit

Permalink
Attempt to fix cpu-detection test
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Oct 28, 2023
1 parent a02e351 commit 4fc3a6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
17 changes: 4 additions & 13 deletions crates/std_detect/tests/cpu-detection.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
#![feature(
stdarch_internal,
stdarch_arm_feature_detection,
stdarch_powerpc_feature_detection
)]
#![feature(stdarch_internal)]
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
#![cfg_attr(target_arch = "powerpc", feature(stdarch_powerpc_feature_detection))]
#![cfg_attr(target_arch = "powerpc64", feature(stdarch_powerpc_feature_detection))]
#![allow(clippy::unwrap_used, clippy::use_debug, clippy::print_stdout)]
#![cfg(any(
target_arch = "arm",
target_arch = "aarch64",
target_arch = "x86",
target_arch = "x86_64",
target_arch = "powerpc",
target_arch = "powerpc64"
))]

#[macro_use]
extern crate std_detect;
Expand Down
4 changes: 3 additions & 1 deletion examples/connect5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
//! You should see a game self-playing. In the end of the game, it shows the average time for
//! each move.

#![feature(avx512_target_feature, stdarch_x86_avx512)]
#![feature(avx512_target_feature)]
#![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512))]
#![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512))]
#![feature(stmt_expr_attributes)]

use rand::seq::SliceRandom;
Expand Down

0 comments on commit 4fc3a6c

Please sign in to comment.