about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2023-10-27 13:37:04 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2023-10-29 20:39:50 +0100
commitea27e5cfcb0bf156e11d45fd439ccbf539cd1d18 (patch)
tree2f5dea2aea729cb8f0973698d0ca6fce7483f620 /library/stdarch/examples
parent3e5850284a518dff59f691e50fe0d7efded9ff56 (diff)
Fix various compilation errors
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/connect5.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 6298255421a..ffbff5e4869 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -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;