File tree Expand file tree Collapse file tree 10 files changed +16
-18
lines changed Expand file tree Collapse file tree 10 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070
7171COPY 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.
7573RUN ./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
10199ENV 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
Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070
7171COPY 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.
7573RUN ./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
Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ set -ex
44
55source 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
911mkdir binutils-build
1012cd 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 )
1315hide_output make install
1416
1517cd ..
1618rm -rf binutils-build
17- rm -rf binutils-2.25.1
19+ rm -rf binutils-$VERSION
Original file line number Diff line number Diff line change 44
55source shared.sh
66
7- LLVM=llvmorg-10 .0.0
7+ LLVM=llvmorg-12 .0.1
88
99mkdir llvm-project
1010cd 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 )
3434hide_output make install
3535
3636cd ../..
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE/cmake-$CMAKE.
99mkdir cmake-build
1010cd cmake-build
1111hide_output ../cmake-$CMAKE /configure --prefix=/rustroot
12- hide_output make -j10
12+ hide_output make -j $( nproc )
1313hide_output make install
1414
1515cd ..
Original file line number Diff line number Diff 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 )
3434hide_output make install
3535
3636cd ..
Original file line number Diff line number Diff 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 )
3636hide_output make install
3737ln -s gcc /rustroot/bin/cc
3838
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ curl $URL | tar xzf -
1414
1515cd openssl-$VERSION
1616hide_output ./config --prefix=/rustroot shared -fPIC
17- hide_output make -j10
17+ hide_output make -j $( nproc )
1818hide_output make install
1919cd ..
2020rm -rf openssl-$VERSION
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ cd python-build
1414# than that fairly normal.
1515CFLAGS=' -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 )
1818hide_output make install
1919
2020cd ..
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euxo pipefail
44
55rm -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
1010RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
You can’t perform that action at this time.
0 commit comments