Skip to content

Commit 5a20376

Browse files
authored
Fix compile of stdsimd on powerpc with no flags (#531)
We're running into issues updating with rust-lang/rust#52535, so we need to get this working without `RUSTFLAGS` enabling the `altivec` feature
1 parent 0fa99a1 commit 5a20376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/run.sh

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ RUSTFLAGS="$RUSTFLAGS --cfg stdsimd_strict"
1414

1515
# FIXME: on armv7 neon intrinsics require the neon target-feature to be
1616
# unconditionally enabled.
17-
# FIXME: powerpc (32-bit) must be compiled with altivec
1817
# FIXME: on powerpc (32-bit) and powerpc64 (big endian) disable
1918
# the instr tests.
2019
case ${TARGET} in
2120
armv7*)
2221
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
2322
;;
2423
powerpc-*)
25-
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+altivec"
2624
export STDSIMD_DISABLE_ASSERT_INSTR=1
2725
;;
2826
powerpc64-*)

coresimd/powerpc/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! PowerPC intrinsics
22
3+
#[cfg(target_feature = "altivec")]
34
mod altivec;
5+
#[cfg(target_feature = "altivec")]
46
pub use self::altivec::*;
57

68
mod vsx;

0 commit comments

Comments
 (0)