Skip to content

Commit

Permalink
Fix compile of stdsimd on powerpc with no flags (#531)
Browse files Browse the repository at this point in the history
We're running into issues updating with rust-lang/rust#52535, so we need to get
this working without `RUSTFLAGS` enabling the `altivec` feature
  • Loading branch information
alexcrichton authored Jul 20, 2018
1 parent 0fa99a1 commit 5a20376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ RUSTFLAGS="$RUSTFLAGS --cfg stdsimd_strict"

# FIXME: on armv7 neon intrinsics require the neon target-feature to be
# unconditionally enabled.
# FIXME: powerpc (32-bit) must be compiled with altivec
# FIXME: on powerpc (32-bit) and powerpc64 (big endian) disable
# the instr tests.
case ${TARGET} in
armv7*)
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+neon"
;;
powerpc-*)
export RUSTFLAGS="${RUSTFLAGS} -C target-feature=+altivec"
export STDSIMD_DISABLE_ASSERT_INSTR=1
;;
powerpc64-*)
Expand Down
2 changes: 2 additions & 0 deletions coresimd/powerpc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! PowerPC intrinsics

#[cfg(target_feature = "altivec")]
mod altivec;
#[cfg(target_feature = "altivec")]
pub use self::altivec::*;

mod vsx;
Expand Down

0 comments on commit 5a20376

Please sign in to comment.