Skip to content

Commit 0be38e1

Browse files
committed
Auto merge of #48600 - Mark-Simulacrum:rustbuild-updates-2, r=alexcrichton
Remove --host and --target arguments to configure in Dockerfiles These arguments are passed to the relevant x.py invocation in all cases anyway. As such, there is no need to separately configure them. x.py will ignore the configuration when they are passed on the command line anyway. r? @alexcrichton
2 parents e026b59 + ab7ce1c commit 0be38e1

File tree

36 files changed

+27
-52
lines changed

36 files changed

+27
-52
lines changed

src/ci/docker/arm-android/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ ENV PATH=$PATH:/android/sdk/platform-tools
3131

3232
ENV TARGETS=arm-linux-androideabi
3333

34-
ENV RUST_CONFIGURE_ARGS \
35-
--target=$TARGETS \
36-
--arm-linux-androideabi-ndk=/android/ndk/arm-14
34+
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14
3735

3836
ENV SCRIPT python2.7 ../x.py test --target $TARGETS
3937

src/ci/docker/armhf-gnu/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ RUN curl -O http://ftp.nl.debian.org/debian/dists/jessie/main/installer-armhf/cu
7676
COPY scripts/sccache.sh /scripts/
7777
RUN sh /scripts/sccache.sh
7878

79-
ENV RUST_CONFIGURE_ARGS \
80-
--target=arm-unknown-linux-gnueabihf \
81-
--qemu-armhf-rootfs=/tmp/rootfs
79+
ENV RUST_CONFIGURE_ARGS --qemu-armhf-rootfs=/tmp/rootfs
8280
ENV SCRIPT python2.7 ../x.py test --target arm-unknown-linux-gnueabihf
8381

8482
ENV NO_CHANGE_USER=1

src/ci/docker/asmjs/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ ENV EM_CONFIG=/emsdk-portable/.emscripten
2929

3030
ENV TARGETS=asmjs-unknown-emscripten
3131

32-
ENV RUST_CONFIGURE_ARGS --target=$TARGETS --enable-emscripten
32+
ENV RUST_CONFIGURE_ARGS --enable-emscripten
3333

3434
ENV SCRIPT python2.7 ../x.py test --target $TARGETS

src/ci/docker/disabled/aarch64-gnu/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ COPY scripts/sccache.sh /scripts/
7474
RUN sh /scripts/sccache.sh
7575

7676
ENV RUST_CONFIGURE_ARGS \
77-
--target=aarch64-unknown-linux-gnu \
7877
--qemu-aarch64-rootfs=/tmp/rootfs
7978
ENV SCRIPT python2.7 ../x.py test --target aarch64-unknown-linux-gnu
8079
ENV NO_CHANGE_USER=1

src/ci/docker/disabled/dist-aarch64-android/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ ENV DEP_Z_ROOT=/android/ndk/arm64-21/sysroot/usr/
1414
ENV HOSTS=aarch64-linux-android
1515

1616
ENV RUST_CONFIGURE_ARGS \
17-
--host=$HOSTS \
18-
--target=$HOSTS \
1917
--aarch64-linux-android-ndk=/android/ndk/arm64-21 \
2018
--disable-rpath \
2119
--enable-extended \

src/ci/docker/disabled/dist-armv7-android/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ ENV DEP_Z_ROOT=/android/ndk/arm-14/sysroot/usr/
2020
ENV HOSTS=armv7-linux-androideabi
2121

2222
ENV RUST_CONFIGURE_ARGS \
23-
--host=$HOSTS \
24-
--target=$HOSTS \
2523
--armv7-linux-androideabi-ndk=/android/ndk/arm \
2624
--disable-rpath \
2725
--enable-extended \

src/ci/docker/disabled/dist-i686-android/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ ENV DEP_Z_ROOT=/android/ndk/x86-14/sysroot/usr/
2020
ENV HOSTS=i686-linux-android
2121

2222
ENV RUST_CONFIGURE_ARGS \
23-
--host=$HOSTS \
24-
--target=$HOSTS \
2523
--i686-linux-android-ndk=/android/ndk/x86 \
2624
--disable-rpath \
2725
--enable-extended \

src/ci/docker/disabled/dist-x86_64-android/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ ENV DEP_Z_ROOT=/android/ndk/x86_64-21/sysroot/usr/
1414
ENV HOSTS=x86_64-linux-android
1515

1616
ENV RUST_CONFIGURE_ARGS \
17-
--host=$HOSTS \
18-
--target=$HOSTS \
1917
--x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
2018
--disable-rpath \
2119
--enable-extended \

src/ci/docker/disabled/dist-x86_64-dragonfly/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV \
3232

3333
ENV HOSTS=x86_64-unknown-dragonfly
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/disabled/dist-x86_64-haiku/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ RUN sh /scripts/sccache.sh
4242
ENV HOST=x86_64-unknown-haiku
4343
ENV TARGET=target.$HOST
4444

45-
ENV RUST_CONFIGURE_ARGS --host=$HOST --target=$HOST --disable-jemalloc \
45+
ENV RUST_CONFIGURE_ARGS --disable-jemalloc \
4646
--set=$TARGET.cc=x86_64-unknown-haiku-gcc \
4747
--set=$TARGET.cxx=x86_64-unknown-haiku-g++ \
4848
--set=$TARGET.llvm-config=/bin/llvm-config-haiku
49-
ENV SCRIPT python2.7 ../x.py dist
49+
ENV SCRIPT python2.7 ../x.py dist --host=$HOST --target=$HOST

src/ci/docker/disabled/dist-x86_64-redox/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ ENV \
1818
CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc \
1919
CXX_x86_64_unknown_redox=x86_64-unknown-redox-g++
2020

21-
ENV RUST_CONFIGURE_ARGS --target=x86_64-unknown-redox --enable-extended
21+
ENV RUST_CONFIGURE_ARGS --enable-extended
2222
ENV SCRIPT python2.7 ../x.py dist --target x86_64-unknown-redox

src/ci/docker/disabled/wasm32-exp/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ ENV EM_CONFIG=/root/.emscripten
3030

3131
ENV TARGETS=wasm32-experimental-emscripten
3232

33-
ENV RUST_CONFIGURE_ARGS --target=$TARGETS --experimental-targets=WebAssembly
33+
ENV RUST_CONFIGURE_ARGS --experimental-targets=WebAssembly
3434

3535
ENV SCRIPT python2.7 ../x.py test --target $TARGETS

src/ci/docker/disabled/wasm32/Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,4 @@ ENV BINARYEN_ROOT=/emsdk-portable/clang/e1.37.13_64bit/binaryen/
2929
ENV EM_CONFIG=/emsdk-portable/.emscripten
3030

3131
ENV TARGETS=wasm32-unknown-emscripten
32-
33-
ENV RUST_CONFIGURE_ARGS --target=$TARGETS
34-
3532
ENV SCRIPT python2.7 ../x.py test --target $TARGETS

src/ci/docker/dist-aarch64-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV CC_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnueabi-gcc \
3232

3333
ENV HOSTS=aarch64-unknown-linux-gnu
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-android/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ ENV TARGETS=$TARGETS,aarch64-linux-android
2121
ENV TARGETS=$TARGETS,x86_64-linux-android
2222

2323
ENV RUST_CONFIGURE_ARGS \
24-
--target=$TARGETS \
2524
--enable-extended \
2625
--arm-linux-androideabi-ndk=/android/ndk/arm-14 \
2726
--armv7-linux-androideabi-ndk=/android/ndk/arm-14 \

src/ci/docker/dist-arm-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV CC_arm_unknown_linux_gnueabi=arm-unknown-linux-gnueabi-gcc \
3232

3333
ENV HOSTS=arm-unknown-linux-gnueabi
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-armhf-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc \
3232

3333
ENV HOSTS=arm-unknown-linux-gnueabihf
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-armv7-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \
3232

3333
ENV HOSTS=armv7-unknown-linux-gnueabihf
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-i586-gnu-i586-i686-musl/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ COPY scripts/sccache.sh /scripts/
3030
RUN sh /scripts/sccache.sh
3131

3232
ENV RUST_CONFIGURE_ARGS \
33-
--target=i686-unknown-linux-musl,i586-unknown-linux-gnu \
3433
--musl-root-i586=/musl-i586 \
3534
--musl-root-i686=/musl-i686 \
3635
--enable-extended
@@ -46,8 +45,7 @@ ENV CFLAGS_i586_unknown_linux_gnu=-Wa,-mrelax-relocations=no
4645
# https://github.com/alexcrichton/cc-rs/pull/281
4746
ENV CFLAGS_i586_unknown_linux_musl="-Wa,-mrelax-relocations=no -Wl,-melf_i386"
4847

49-
ENV TARGETS=i586-unknown-linux-gnu
50-
ENV TARGETS=$TARGETS,i686-unknown-linux-musl
48+
ENV TARGETS=i586-unknown-linux-gnu,i686-unknown-linux-musl
5149

5250
ENV SCRIPT \
5351
python2.7 ../x.py test --target $TARGETS && \

src/ci/docker/dist-i686-freebsd/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ ENV \
2929

3030
ENV HOSTS=i686-unknown-freebsd
3131

32-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
32+
ENV RUST_CONFIGURE_ARGS --enable-extended
3333
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-i686-linux/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ RUN sh /scripts/sccache.sh
8282
ENV HOSTS=i686-unknown-linux-gnu
8383

8484
ENV RUST_CONFIGURE_ARGS \
85-
--host=$HOSTS \
8685
--enable-extended \
8786
--enable-sanitizers \
8887
--enable-profiler \
89-
--enable-emscripten \
90-
--build=i686-unknown-linux-gnu
91-
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
88+
--enable-emscripten
89+
ENV SCRIPT python2.7 ../x.py dist --build $HOSTS --host $HOSTS --target $HOSTS
9290

9391
# This is the only builder which will create source tarballs
9492
ENV DIST_SRC 1

src/ci/docker/dist-mips-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ RUN sh /scripts/sccache.sh
2222

2323
ENV HOSTS=mips-unknown-linux-gnu
2424

25-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
25+
ENV RUST_CONFIGURE_ARGS --enable-extended
2626
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-mips64-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ RUN sh /scripts/sccache.sh
2121

2222
ENV HOSTS=mips64-unknown-linux-gnuabi64
2323

24-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
24+
ENV RUST_CONFIGURE_ARGS --enable-extended
2525
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-mips64el-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ RUN sh /scripts/sccache.sh
2222

2323
ENV HOSTS=mips64el-unknown-linux-gnuabi64
2424

25-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
25+
ENV RUST_CONFIGURE_ARGS --enable-extended
2626
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-mipsel-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ RUN sh /scripts/sccache.sh
2121

2222
ENV HOSTS=mipsel-unknown-linux-gnu
2323

24-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
24+
ENV RUST_CONFIGURE_ARGS --enable-extended
2525
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-powerpc-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ENV \
3434

3535
ENV HOSTS=powerpc-unknown-linux-gnu
3636

37-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
37+
ENV RUST_CONFIGURE_ARGS --enable-extended
3838
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
3939

4040
# FIXME(#36150) this will fail the bootstrap. Probably means something bad is

src/ci/docker/dist-powerpc64-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ ENV \
3535

3636
ENV HOSTS=powerpc64-unknown-linux-gnu
3737

38-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
38+
ENV RUST_CONFIGURE_ARGS --enable-extended
3939
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-powerpc64le-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ ENV \
3232

3333
ENV HOSTS=powerpc64le-unknown-linux-gnu
3434

35-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
35+
ENV RUST_CONFIGURE_ARGS --enable-extended
3636
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-s390x-linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ ENV \
3434

3535
ENV HOSTS=s390x-unknown-linux-gnu
3636

37-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
37+
ENV RUST_CONFIGURE_ARGS --enable-extended
3838
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-various-1/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
8989
CFLAGS_armv5te_unknown_linux_gnueabi="-march=armv5te -marm -mfloat-abi=soft"
9090

9191
ENV RUST_CONFIGURE_ARGS \
92-
--target=$TARGETS \
9392
--musl-root-arm=/musl-arm \
9493
--musl-root-armhf=/musl-armhf \
9594
--musl-root-armv7=/musl-armv7 \

src/ci/docker/dist-various-2/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ ENV TARGETS=$TARGETS,x86_64-sun-solaris
5555
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnux32
5656
ENV TARGETS=$TARGETS,x86_64-unknown-cloudabi
5757

58-
ENV RUST_CONFIGURE_ARGS --target=$TARGETS --enable-extended
58+
ENV RUST_CONFIGURE_ARGS --enable-extended
5959
ENV SCRIPT python2.7 ../x.py dist --target $TARGETS

src/ci/docker/dist-x86_64-freebsd/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ ENV \
2929

3030
ENV HOSTS=x86_64-unknown-freebsd
3131

32-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
32+
ENV RUST_CONFIGURE_ARGS --enable-extended
3333
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/dist-x86_64-linux/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ RUN sh /scripts/sccache.sh
8282
ENV HOSTS=x86_64-unknown-linux-gnu
8383

8484
ENV RUST_CONFIGURE_ARGS \
85-
--host=$HOSTS \
8685
--enable-extended \
8786
--enable-sanitizers \
8887
--enable-profiler \

src/ci/docker/dist-x86_64-musl/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ COPY scripts/sccache.sh /scripts/
3030
RUN sh /scripts/sccache.sh
3131

3232
ENV RUST_CONFIGURE_ARGS \
33-
--target=x86_64-unknown-linux-musl \
3433
--musl-root-x86_64=/musl-x86_64 \
3534
--enable-extended
3635

src/ci/docker/dist-x86_64-netbsd/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ ENV \
3333

3434
ENV HOSTS=x86_64-unknown-netbsd
3535

36-
ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
36+
ENV RUST_CONFIGURE_ARGS --enable-extended
3737
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/wasm32-unknown/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ RUN sh /scripts/sccache.sh
2222
ENV TARGETS=wasm32-unknown-unknown
2323

2424
ENV RUST_CONFIGURE_ARGS \
25-
--target=$TARGETS \
2625
--set build.nodejs=/node-v9.2.0-linux-x64/bin/node
2726

2827
ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \

0 commit comments

Comments
 (0)