Skip to content

Commit f29450a

Browse files
committed
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.
1 parent 8eae2eb commit f29450a

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 1 addition & 3 deletions
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-clang.sh

Lines changed: 1 addition & 1 deletion
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

src/ci/pgo.sh

Lines changed: 1 addition & 1 deletion
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)