Skip to content

Commit 5aff6dd

Browse files
committed
Auto merge of #87019 - nikic:clang-12.0.1, r=Mark-Simulacrum
Use clang 12.0.1 on dist-x86_64/i686-linux The LLD + ThinLTO __morestack bug has been fixed in 12.0.1, so we can now update our clang version. This also means that we no longer need to build Python 2.
2 parents 394804b + 54110fe commit 5aff6dd

File tree

10 files changed

+16
-18
lines changed

10 files changed

+16
-18
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969
RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070

7171
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
72-
# Build Python 2.7 needed for Clang 10.
73-
RUN ./build-python.sh 2.7.12
7472
# Build Python 3 needed for LLVM 12.
7573
RUN ./build-python.sh 3.9.1
7674

@@ -97,7 +95,7 @@ ENV RUST_CONFIGURE_ARGS \
9795
--build=i686-unknown-linux-gnu \
9896
--set llvm.ninja=false \
9997
--set rust.jemalloc
100-
ENV SCRIPT python2.7 ../x.py dist --build $HOSTS --host $HOSTS --target $HOSTS
98+
ENV SCRIPT python3 ../x.py dist --build $HOSTS --host $HOSTS --target $HOSTS
10199
ENV CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER=clang
102100

103101
# This was added when we switched from gcc to clang. It's not clear why this is

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969
RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070

7171
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
72-
# Build Python 2.7 needed for Clang 10.
73-
RUN ./build-python.sh 2.7.12
7472
# Build Python 3 needed for LLVM 12.
7573
RUN ./build-python.sh 3.9.1
7674

@@ -102,7 +100,7 @@ ENV RUST_CONFIGURE_ARGS \
102100
--set llvm.thin-lto=true \
103101
--set llvm.ninja=false \
104102
--set rust.jemalloc
105-
ENV SCRIPT ../src/ci/pgo.sh python2.7 ../x.py dist \
103+
ENV SCRIPT ../src/ci/pgo.sh python3 ../x.py dist \
106104
--host $HOSTS --target $HOSTS \
107105
--include-default-paths \
108106
src/tools/build-manifest

src/ci/docker/host-x86_64/dist-x86_64-linux/build-binutils.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ set -ex
44

55
source shared.sh
66

7-
curl https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.bz2 | tar xfj -
7+
VERSION=2.26.1
8+
9+
curl https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.bz2 | tar xfj -
810

911
mkdir binutils-build
1012
cd binutils-build
11-
hide_output ../binutils-2.25.1/configure --prefix=/rustroot
12-
hide_output make -j10
13+
hide_output ../binutils-$VERSION/configure --prefix=/rustroot
14+
hide_output make -j$(nproc)
1315
hide_output make install
1416

1517
cd ..
1618
rm -rf binutils-build
17-
rm -rf binutils-2.25.1
19+
rm -rf binutils-$VERSION

src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -ex
44

55
source shared.sh
66

7-
LLVM=llvmorg-10.0.0
7+
LLVM=llvmorg-12.0.1
88

99
mkdir llvm-project
1010
cd llvm-project
@@ -30,7 +30,7 @@ hide_output \
3030
-DLLVM_ENABLE_PROJECTS="clang;lld" \
3131
-DC_INCLUDE_DIRS="$INC"
3232

33-
hide_output make -j10
33+
hide_output make -j$(nproc)
3434
hide_output make install
3535

3636
cd ../..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-cmake.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE/cmake-$CMAKE.
99
mkdir cmake-build
1010
cd cmake-build
1111
hide_output ../cmake-$CMAKE/configure --prefix=/rustroot
12-
hide_output make -j10
12+
hide_output make -j$(nproc)
1313
hide_output make install
1414

1515
cd ..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-curl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ hide_output ../curl-$VERSION/configure \
3030
--disable-rtsp \
3131
--disable-ldaps \
3232
--disable-ldap
33-
hide_output make -j10
33+
hide_output make -j$(nproc)
3434
hide_output make install
3535

3636
cd ..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ hide_output ../gcc-$GCC/configure \
3232
--prefix=/rustroot \
3333
--enable-languages=c,c++ \
3434
--disable-gnu-unique-object
35-
hide_output make -j10
35+
hide_output make -j$(nproc)
3636
hide_output make install
3737
ln -s gcc /rustroot/bin/cc
3838

src/ci/docker/host-x86_64/dist-x86_64-linux/build-openssl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ curl $URL | tar xzf -
1414

1515
cd openssl-$VERSION
1616
hide_output ./config --prefix=/rustroot shared -fPIC
17-
hide_output make -j10
17+
hide_output make -j$(nproc)
1818
hide_output make install
1919
cd ..
2020
rm -rf openssl-$VERSION

src/ci/docker/host-x86_64/dist-x86_64-linux/build-python.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd python-build
1414
# than that fairly normal.
1515
CFLAGS='-I /rustroot/include' LDFLAGS='-L /rustroot/lib -L /rustroot/lib64' \
1616
hide_output ../Python-$VERSION/configure --prefix=/rustroot
17-
hide_output make -j10
17+
hide_output make -j$(nproc)
1818
hide_output make install
1919

2020
cd ..

src/ci/pgo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euxo pipefail
44

55
rm -rf /tmp/rustc-pgo
66

7-
python2.7 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
7+
python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
88
--stage 2 library/std --rust-profile-generate=/tmp/rustc-pgo
99

1010
RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc --edition=2018 \

0 commit comments

Comments
 (0)