Skip to content

Commit f505736

Browse files
Merge pull request #389 from RalfJung/const_intrinsic_copy
fix feature flags
2 parents f55ca30 + 047ba0a commit f505736

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

crates/core_simd/src/lib.rs

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![no_std]
22
#![feature(
33
core_intrinsics,
4+
const_intrinsic_copy,
45
const_refs_to_cell,
56
const_maybe_uninit_as_mut_ptr,
67
const_mut_refs,
@@ -11,10 +12,27 @@
1112
repr_simd,
1213
simd_ffi,
1314
staged_api,
14-
stdsimd,
1515
strict_provenance,
1616
ptr_metadata
1717
)]
18+
#![cfg_attr(
19+
all(
20+
any(target_arch = "aarch64", target_arch = "arm",),
21+
any(
22+
all(target_feature = "v6", not(target_feature = "mclass")),
23+
all(target_feature = "mclass", target_feature = "dsp"),
24+
)
25+
),
26+
feature(stdarch_arm_dsp)
27+
)]
28+
#![cfg_attr(
29+
all(target_arch = "arm", target_feature = "v7"),
30+
feature(stdarch_arm_neon_intrinsics)
31+
)]
32+
#![cfg_attr(
33+
any(target_arch = "powerpc", target_arch = "powerpc64"),
34+
feature(stdarch_powerpc)
35+
)]
1836
#![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
1937
#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
2038
#![allow(internal_features)]

crates/test_helpers/src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#![feature(stdsimd, powerpc_target_feature)]
1+
#![feature(powerpc_target_feature)]
2+
#![cfg_attr(
3+
any(target_arch = "powerpc", target_arch = "powerpc64"),
4+
feature(stdarch_powerpc)
5+
)]
26

37
pub mod array;
48

0 commit comments

Comments
 (0)