Skip to content

Commit 722f5c9

Browse files
committed
test that including stdsimd as a submodule in libstd succeeds
1 parent fed2a62 commit 722f5c9

File tree

18 files changed

+209
-34
lines changed

18 files changed

+209
-34
lines changed

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ matrix:
1313
env: TARGET=x86_64-unknown-linux-gnu
1414
install: true
1515
- name: "x86_64-unknown-linux-gnu-emulated (runs all assert_instr tests)"
16-
env: TARGET=x86_64-unknown-linux-gnu-emulated STDSIMD_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdsimd_intel_sde"
16+
env: TARGET=x86_64-unknown-linux-gnu-emulated STDSIMD_TEST_EVERYTHING=1 RUSTFLAGS="--cfg stdsimd_intel_sde" NOLIBSTDBUILD=1
1717
install: true
1818
- name: "x86_64-linux-android - no assert_instr"
19-
env: TARGET=x86_64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
19+
env: TARGET=x86_64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
2020
- name: "arm-unknown-linux-gnueabihf"
2121
env: TARGET=arm-unknown-linux-gnueabihf
2222
- name: "arm-linux-androideabi - no assert_instr"
23-
env: TARGET=arm-linux-androideabi STDSIMD_DISABLE_ASSERT_INSTR=1
23+
env: TARGET=arm-linux-androideabi STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
2424
- name: "armv7-unknown-linux-gnueabihf - NEON"
2525
env: TARGET=armv7-unknown-linux-gnueabihf RUSTFLAGS="-C target-feature=+neon"
2626
- name: "aarch64-unknown-linux-gnu"
2727
env: TARGET=aarch64-unknown-linux-gnu
2828
- name: "mips-unknown-linux-gnu - build-only"
2929
env: TARGET=mips-unknown-linux-gnu NORUN=1
3030
- name: "mipsel-unknown-linux-musl - build-only"
31-
env: TARGET=mipsel-unknown-linux-musl NORUN=1
31+
env: TARGET=mipsel-unknown-linux-musl NORUN=1 NOLIBSTDBUILD=1
3232
- name: "mips64-unknown-linux-gnuabi64 - build-only"
3333
env: TARGET=mips64-unknown-linux-gnuabi64 NORUN=1
3434
- name: "mips64el-unknown-linux-gnuabi64 - build-only"
3535
env: TARGET=mips64el-unknown-linux-gnuabi64 NORUN=1
3636
- name: "aarch64-linux-android - no assert_instr"
37-
env: TARGET=aarch64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1
37+
env: TARGET=aarch64-linux-android STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
3838
- name: "powerpc-unknown-linux-gnu - no assert_instr"
3939
env: TARGET=powerpc-unknown-linux-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
4040
- name: "powerpc64-unknown-linux-gnu - no assert_instr, no simd_test"
@@ -57,16 +57,16 @@ matrix:
5757
- name: "wasm32-unknown-unknown"
5858
env: TARGET=wasm32-unknown-unknown
5959
- name: "thumbv6m-none-eabi - build libcore only"
60-
env: TARGET=thumbv6m-none-eabi NORUN=1 NOSTD=1
60+
env: TARGET=thumbv6m-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
6161
script: ci/run.sh
6262
- name: "thumbv7m-none-eabi - build libcore only"
63-
env: TARGET=thumbv7m-none-eabi NORUN=1 NOSTD=1
63+
env: TARGET=thumbv7m-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
6464
script: ci/run.sh
6565
- name: "thumbv7em-none-eabi - build libcore only"
66-
env: TARGET=thumbv7em-none-eabi NORUN=1 NOSTD=1
66+
env: TARGET=thumbv7em-none-eabi NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
6767
script: ci/run.sh
6868
- name: "thumbv7em-none-eabihf - build libcore only"
69-
env: TARGET=thumbv7em-none-eabihf NORUN=1 NOSTD=1
69+
env: TARGET=thumbv7em-none-eabihf NORUN=1 NOSTD=1 NOLIBSTDBUILD=1
7070
script: ci/run.sh
7171
- name: "x86_64-pc-windows-msvc"
7272
env: TARGET=x86_64-pc-windows-msvc
@@ -75,16 +75,16 @@ matrix:
7575
install: true
7676
- name: "x86_64-pc-windows-gnu - no assert_instr"
7777
# FIXME: https://github.com/rust-lang-nursery/stdsimd/issues/595
78-
env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
78+
env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
7979
os: windows
8080
script: ci/run.sh
8181
- name: "i686-pc-windows-msvc - no assert_instr"
8282
# FIXME: https://github.com/rust-lang-nursery/stdsimd/issues/595
83-
env: TARGET=i686-pc-windows-msvc STDSIMD_DISABLE_ASSERT_INSTR=1
83+
env: TARGET=i686-pc-windows-msvc STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
8484
os: windows
8585
script: ci/run.sh
8686
- name: "i686-pc-windows-gnu"
87-
env: TARGET=i686-pc-windows-gnu
87+
env: TARGET=i686-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
8888
os: windows
8989
script: ci/run.sh
9090
- name: "Documentation"
@@ -109,8 +109,8 @@ matrix:
109109
- shellcheck ci/*.sh
110110
allow_failures:
111111
# FIXME: https://github.com/rust-lang/rust/issues/56153
112-
- env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1
113-
- env: TARGET=i686-pc-windows-gnu
112+
- env: TARGET=x86_64-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
113+
- env: TARGET=i686-pc-windows-gnu STDSIMD_DISABLE_ASSERT_INSTR=1 NOLIBSTDBUILD=1
114114

115115
install: rustup target add $TARGET
116116
script:

ci/docker/aarch64-unknown-linux-gnu/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
libc6-dev-arm64-cross \
88
qemu-user \
99
make \
10-
file
10+
file \
11+
g++ \
12+
g++-aarch64-linux-gnu \
13+
git \
14+
python \
15+
curl \
16+
bzip2 \
17+
perl \
18+
wget \
19+
autoconf \
20+
gettext
21+
1122

1223
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
1324
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-aarch64 -L /usr/aarch64-linux-gnu" \

ci/docker/arm-unknown-linux-gnueabihf/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
libc6-dev-armhf-cross \
88
qemu-user \
99
make \
10-
file
10+
file \
11+
g++ \
12+
g++-arm-linux-gnueabihf \
13+
git \
14+
python \
15+
curl \
16+
bzip2 \
17+
perl \
18+
wget \
19+
autoconf \
20+
gettext
21+
1122
ENV CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
1223
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER="qemu-arm -L /usr/arm-linux-gnueabihf" \
1324
OBJDUMP=arm-linux-gnueabihf-objdump

ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
libc6-dev-armhf-cross \
88
qemu-user \
99
make \
10-
file
10+
file \
11+
g++ \
12+
g++-arm-linux-gnueabihf \
13+
git \
14+
python \
15+
curl \
16+
bzip2 \
17+
perl \
18+
wget \
19+
autoconf \
20+
gettext
21+
1122
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
1223
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUNNER="qemu-arm -L /usr/arm-linux-gnueabihf" \
1324
OBJDUMP=arm-linux-gnueabihf-objdump

ci/docker/i586-unknown-linux-gnu/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
44
libc6-dev \
55
file \
66
make \
7-
ca-certificates
7+
ca-certificates \
8+
g++-multilib \
9+
git \
10+
python \
11+
curl \
12+
bzip2 \
13+
perl \
14+
wget \
15+
autoconf \
16+
gettext
17+

ci/docker/i686-unknown-linux-gnu/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
44
libc6-dev \
55
file \
66
make \
7-
ca-certificates
7+
ca-certificates \
8+
g++-multilib \
9+
git \
10+
python \
11+
curl \
12+
bzip2 \
13+
perl \
14+
wget \
15+
autoconf \
16+
gettext
17+

ci/docker/mips-unknown-linux-gnu/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
66
qemu-system-mips \
77
qemu-user \
88
make \
9-
file
9+
file \
10+
g++ \
11+
g++-mips-linux-gnu \
12+
git \
13+
python \
14+
curl \
15+
bzip2 \
16+
perl \
17+
wget \
18+
autoconf \
19+
gettext
20+
1021

1122
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_LINKER=mips-linux-gnu-gcc \
1223
CARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_RUNNER="qemu-mips -L /usr/mips-linux-gnu" \

ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ FROM ubuntu:17.10
33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \
55
gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross \
6-
qemu-system-mips64 qemu-user
6+
qemu-system-mips64 qemu-user \
7+
g++ \
8+
g++-mips64-linux-gnuabi64 \
9+
git \
10+
python \
11+
curl \
12+
bzip2 \
13+
perl \
14+
wget \
15+
autoconf \
16+
gettext
717

818
ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_LINKER=mips64-linux-gnuabi64-gcc \
919
CARGO_TARGET_MIPS64_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64 -L /usr/mips64-linux-gnuabi64" \

ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ FROM ubuntu:17.10
33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \
55
gcc-mips64el-linux-gnuabi64 libc6-dev-mips64el-cross \
6-
qemu-system-mips64el
6+
qemu-system-mips64el \
7+
g++ \
8+
g++-mips64el-linux-gnuabi64 \
9+
git \
10+
python \
11+
curl \
12+
bzip2 \
13+
perl \
14+
wget \
15+
autoconf \
16+
gettext
17+
718

819
ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_LINKER=mips64el-linux-gnuabi64-gcc \
920
CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_GNUABI64_RUNNER="qemu-mips64el -L /usr/mips64el-linux-gnuabi64" \

ci/docker/mipsel-unknown-linux-musl/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt-get update && \
1212
curl \
1313
file
1414

15+
1516
RUN mkdir /toolchain
1617

1718
# Note that this originally came from:

0 commit comments

Comments
 (0)