Skip to content

Test that including stdsimd as a submodule in libstd succeeds #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ matrix:
env: TARGET=x86_64-unknown-linux-gnu
install: true
- name: "x86_64-unknown-linux-gnu-emulated (runs all assert_instr tests)"
env: TARGET=x86_64-unknown-linux-gnu-emulated STDSIMD_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdsimd_intel_sde"
env: TARGET=x86_64-unknown-linux-gnu-emulated STDSIMD_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdsimd_intel_sde" NOLIBSTDBUILD=1
install: true
- name: "x86_64-linux-android - no assert_instr"
env: TARGET=x86_64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
env: TARGET=x86_64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
- name: "arm-unknown-linux-gnueabihf"
env: TARGET=arm-unknown-linux-gnueabihf
- name: "arm-linux-androideabi - no assert_instr"
env: TARGET=arm-linux-androideabi STDSIMD_DISABLE_ASSERT_INSTR=1
env: TARGET=arm-linux-androideabi STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
- name: "armv7-unknown-linux-gnueabihf - NEON"
env: TARGET=armv7-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+neon"
- name: "aarch64-unknown-linux-gnu"
env: TARGET=aarch64-unknown-linux-gnu
- name: "mips-unknown-linux-gnu - build-only"
env: TARGET=mips-unknown-linux-gnu NORUN=1
- name: "mipsel-unknown-linux-musl - build-only"
env: TARGET=mipsel-unknown-linux-musl NORUN=1
env: TARGET=mipsel-unknown-linux-musl NORUN=1 NOLIBSTDBUILD=1
- name: "mips64-unknown-linux-gnuabi64 - build-only"
env: TARGET=mips64-unknown-linux-gnuabi64 NORUN=1
- name: "mips64el-unknown-linux-gnuabi64 - build-only"
env: TARGET=mips64el-unknown-linux-gnuabi64 NORUN=1
- name: "aarch64-linux-android - no assert_instr"
env: TARGET=aarch64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
env: TARGET=aarch64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
- name: "powerpc-unknown-linux-gnu - no assert_instr"
env: TARGET=powerpc-unknown-linux-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
- name: "powerpc64-unknown-linux-gnu - no assert_instr, no simd_test"
Expand All @@ -57,16 +57,16 @@ matrix:
- name: "wasm32-unknown-unknown"
env: TARGET=wasm32-unknown-unknown
- name: "thumbv6m-none-eabi - build libcore only"
env: TARGET=thumbv6m-none-eabi NORUN=1 NOSTD=1
env: TARGET=thumbv6m-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
script: ci/run.sh
- name: "thumbv7m-none-eabi - build libcore only"
env: TARGET=thumbv7m-none-eabi NORUN=1 NOSTD=1
env: TARGET=thumbv7m-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
script: ci/run.sh
- name: "thumbv7em-none-eabi - build libcore only"
env: TARGET=thumbv7em-none-eabi NORUN=1 NOSTD=1
env: TARGET=thumbv7em-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
script: ci/run.sh
- name: "thumbv7em-none-eabihf - build libcore only"
env: TARGET=thumbv7em-none-eabihf NORUN=1 NOSTD=1
env: TARGET=thumbv7em-none-eabihf NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
script: ci/run.sh
- name: "x86_64-pc-windows-msvc"
env: TARGET=x86_64-pc-windows-msvc
Expand All @@ -75,16 +75,16 @@ matrix:
install: true
- name: "x86_64-pc-windows-gnu - no assert_instr"
# FIXME: https://github.com/rust-lang-nursery/stdsimd/issues/595
env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
os: windows
script: ci/run.sh
- name: "i686-pc-windows-msvc - no assert_instr"
# FIXME: https://github.com/rust-lang-nursery/stdsimd/issues/595
env: TARGET=i686-pc-windows-msvc STDSIMD_DISABLE_ASSERT_INSTR=1
env: TARGET=i686-pc-windows-msvc STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
os: windows
script: ci/run.sh
- name: "i686-pc-windows-gnu"
env: TARGET=i686-pc-windows-gnu
env: TARGET=i686-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
os: windows
script: ci/run.sh
- name: "Documentation"
Expand All @@ -109,8 +109,8 @@ matrix:
- shellcheck ci/*.sh
allow_failures:
# FIXME: https://github.com/rust-lang/rust/issues/56153
- env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
- env: TARGET=i686-pc-windows-gnu
- env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
- env: TARGET=i686-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1

install: rustup target add $TARGET
script:
Expand Down
13 changes: 12 additions & 1 deletion ci/docker/aarch64-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev-arm64-cross \
qemu-user \
make \
file
file \
g++ \
g++-aarch64-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext


ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-aarch64 -L /usr/aarch64-linux-gnu" \
Expand Down
13 changes: 12 additions & 1 deletion ci/docker/arm-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev-armhf-cross \
qemu-user \
make \
file
file \
g++ \
g++-arm-linux-gnueabihf \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER="qemu-arm -L /usr/arm-linux-gnueabihf" \
OBJDUMP=arm-linux-gnueabihf-objdump
13 changes: 12 additions & 1 deletion ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev-armhf-cross \
qemu-user \
make \
file
file \
g++ \
g++-arm-linux-gnueabihf \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUNNER="qemu-arm -L /usr/arm-linux-gnueabihf" \
OBJDUMP=arm-linux-gnueabihf-objdump
12 changes: 11 additions & 1 deletion ci/docker/i586-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev \
file \
make \
ca-certificates
ca-certificates \
g++-multilib \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

12 changes: 11 additions & 1 deletion ci/docker/i686-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev \
file \
make \
ca-certificates
ca-certificates \
g++-multilib \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

13 changes: 12 additions & 1 deletion ci/docker/mips-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
qemu-system-mips \
qemu-user \
make \
file
file \
g++ \
g++-mips-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext


ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \
CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_RUNNER="qemu-mips -L /usr/mips-linux-gnu" \
Expand Down
12 changes: 11 additions & 1 deletion ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ FROM ubuntu:17.10
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user ca-certificates \
gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross \
qemu-system-mips64 qemu-user
qemu-system-mips64 qemu-user \
g++ \
g++-mips64-linux-gnuabi64 \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \
Expand Down
13 changes: 12 additions & 1 deletion ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ FROM ubuntu:17.10
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user ca-certificates \
gcc-mips64el-linux-gnuabi64 libc6-dev-mips64el-cross \
qemu-system-mips64el
qemu-system-mips64el \
g++ \
g++-mips64el-linux-gnuabi64 \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext


ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \
Expand Down
1 change: 1 addition & 0 deletions ci/docker/mipsel-unknown-linux-musl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && \
curl \
file


RUN mkdir /toolchain

# Note that this originally came from:
Expand Down
12 changes: 11 additions & 1 deletion ci/docker/powerpc-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gcc-powerpc-linux-gnu libc6-dev-powerpc-cross \
qemu-system-ppc \
make \
file
file \
g++ \
g++-powerpc-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -cpu Vger -L /usr/powerpc-linux-gnu" \
Expand Down
12 changes: 11 additions & 1 deletion ci/docker/powerpc64-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
qemu-user \
qemu-system-ppc \
make \
file
file \
g++ \
g++-powerpc64-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_LINKER=powerpc64-linux-gnu-gcc \
CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc64 -L /usr/powerpc64-linux-gnu" \
Expand Down
13 changes: 12 additions & 1 deletion ci/docker/powerpc64le-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ FROM ubuntu:17.10
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user ca-certificates \
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
qemu-system-ppc file make
qemu-system-ppc file make \
g++ \
g++-powerpc64le-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext


ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc \
CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc64le -L /usr/powerpc64le-linux-gnu" \
Expand Down
12 changes: 11 additions & 1 deletion ci/docker/s390x-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
gcc-s390x-linux-gnu libc6-dev-s390x-cross \
qemu-user \
make \
file
file \
g++ \
g++-s390x-linux-gnu \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

ENV CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER=s390x-linux-gnu-gcc \
CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_RUNNER="qemu-s390x -L /usr/s390x-linux-gnu" \
Expand Down
11 changes: 10 additions & 1 deletion ci/docker/wasm32-unknown-unknown/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
libc6-dev \
make \
python \
xz-utils
xz-utils \
g++ \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext

# Install `wasm2wat`
RUN git clone --recursive https://github.com/WebAssembly/wabt
Expand Down
11 changes: 10 additions & 1 deletion ci/docker/x86_64-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libc6-dev \
file \
make \
ca-certificates
ca-certificates \
g++ \
git \
python \
curl \
bzip2 \
perl \
wget \
autoconf \
gettext
3 changes: 3 additions & 0 deletions ci/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ run() {
echo "Building docker container for TARGET=${1}"
docker build -t stdsimd -f "ci/docker/${1}/Dockerfile" ci/
mkdir -p target
mkdir -p ../rustc
target=$(echo "${1}" | sed 's/-emulated//')
echo "Running docker"
# shellcheck disable=SC2016
Expand All @@ -25,10 +26,12 @@ run() {
--env STDSIMD_DISABLE_ASSERT_INSTR \
--env NOSTD \
--env NORUN \
--env NOLIBSTDBUILD \
--env RUSTFLAGS \
--env STDSIMD_TEST_NORUN \
--volume "$(pwd)":/checkout:ro \
--volume "$(pwd)"/target:/checkout/target \
--volume "$(pwd)"/../rustc:/rustc \
--workdir /checkout \
--privileged \
stdsimd \
Expand Down
Loading