File tree 10 files changed +16
-18
lines changed
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/
69
69
RUN ./build-gcc.sh && apt-get remove -y gcc g++
70
70
71
71
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
74
72
# Build Python 3 needed for LLVM 12.
75
73
RUN ./build-python.sh 3.9.1
76
74
@@ -97,7 +95,7 @@ ENV RUST_CONFIGURE_ARGS \
97
95
--build=i686-unknown-linux-gnu \
98
96
--set llvm.ninja=false \
99
97
--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
101
99
ENV CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER=clang
102
100
103
101
# 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/
69
69
RUN ./build-gcc.sh && apt-get remove -y gcc g++
70
70
71
71
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
74
72
# Build Python 3 needed for LLVM 12.
75
73
RUN ./build-python.sh 3.9.1
76
74
@@ -102,7 +100,7 @@ ENV RUST_CONFIGURE_ARGS \
102
100
--set llvm.thin-lto=true \
103
101
--set llvm.ninja=false \
104
102
--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 \
106
104
--host $HOSTS --target $HOSTS \
107
105
--include-default-paths \
108
106
src/tools/build-manifest
Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ set -ex
4
4
5
5
source shared.sh
6
6
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 -
8
10
9
11
mkdir binutils-build
10
12
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 )
13
15
hide_output make install
14
16
15
17
cd ..
16
18
rm -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 4
4
5
5
source shared.sh
6
6
7
- LLVM=llvmorg-10 .0.0
7
+ LLVM=llvmorg-12 .0.1
8
8
9
9
mkdir llvm-project
10
10
cd llvm-project
@@ -30,7 +30,7 @@ hide_output \
30
30
-DLLVM_ENABLE_PROJECTS=" clang;lld" \
31
31
-DC_INCLUDE_DIRS=" $INC "
32
32
33
- hide_output make -j10
33
+ hide_output make -j $( nproc )
34
34
hide_output make install
35
35
36
36
cd ../..
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.
9
9
mkdir cmake-build
10
10
cd cmake-build
11
11
hide_output ../cmake-$CMAKE /configure --prefix=/rustroot
12
- hide_output make -j10
12
+ hide_output make -j $( nproc )
13
13
hide_output make install
14
14
15
15
cd ..
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ hide_output ../curl-$VERSION/configure \
30
30
--disable-rtsp \
31
31
--disable-ldaps \
32
32
--disable-ldap
33
- hide_output make -j10
33
+ hide_output make -j $( nproc )
34
34
hide_output make install
35
35
36
36
cd ..
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ hide_output ../gcc-$GCC/configure \
32
32
--prefix=/rustroot \
33
33
--enable-languages=c,c++ \
34
34
--disable-gnu-unique-object
35
- hide_output make -j10
35
+ hide_output make -j $( nproc )
36
36
hide_output make install
37
37
ln -s gcc /rustroot/bin/cc
38
38
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ curl $URL | tar xzf -
14
14
15
15
cd openssl-$VERSION
16
16
hide_output ./config --prefix=/rustroot shared -fPIC
17
- hide_output make -j10
17
+ hide_output make -j $( nproc )
18
18
hide_output make install
19
19
cd ..
20
20
rm -rf openssl-$VERSION
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ cd python-build
14
14
# than that fairly normal.
15
15
CFLAGS=' -I /rustroot/include' LDFLAGS=' -L /rustroot/lib -L /rustroot/lib64' \
16
16
hide_output ../Python-$VERSION /configure --prefix=/rustroot
17
- hide_output make -j10
17
+ hide_output make -j $( nproc )
18
18
hide_output make install
19
19
20
20
cd ..
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euxo pipefail
4
4
5
5
rm -rf /tmp/rustc-pgo
6
6
7
- python2.7 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
7
+ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \
8
8
--stage 2 library/std --rust-profile-generate=/tmp/rustc-pgo
9
9
10
10
RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
You can’t perform that action at this time.
0 commit comments