File tree 6 files changed +18
-11
lines changed
6 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,9 @@ impl Step for Lld {
556
556
t ! ( fs:: create_dir_all( & out_dir) ) ;
557
557
558
558
let mut cfg = cmake:: Config :: new ( builder. src . join ( "src/llvm-project/lld" ) ) ;
559
+ if let Some ( ref linker) = builder. config . llvm_use_linker {
560
+ cfg. define ( "LLVM_USE_LINKER" , linker) ;
561
+ }
559
562
configure_cmake ( builder, target, & mut cfg, true ) ;
560
563
561
564
// This is an awful, awful hack. Discovered when we migrated to using
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ RUN ./build-binutils.sh
68
68
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
- # Debian 6 has Python 2.6 by default, but LLVM needs 2.7+
71
+ # Debian 6 has Python 2.6 by default, but LLVM >= 12 needs Python 3
72
72
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
73
73
RUN ./build-python.sh
74
74
75
- # LLVM needs cmake 3.4.3 or higher, and is planning to raise to 3.13.4.
75
+ # LLVM needs cmake 3.13.4 or higher
76
76
COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
77
77
RUN ./build-cmake.sh
78
78
@@ -94,8 +94,10 @@ ENV RUST_CONFIGURE_ARGS \
94
94
--set target.i686-unknown-linux-gnu.linker=clang \
95
95
--build=i686-unknown-linux-gnu \
96
96
--set llvm.ninja=false \
97
+ --set llvm.use-linker=lld \
98
+ --set rust.use-lld=true \
97
99
--set rust.jemalloc
98
- ENV SCRIPT python2.7 ../x.py dist --build $HOSTS --host $HOSTS --target $HOSTS
100
+ ENV SCRIPT python3 ../x.py dist --build $HOSTS --host $HOSTS --target $HOSTS
99
101
ENV CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER=clang
100
102
101
103
# 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 @@ -68,11 +68,11 @@ RUN ./build-binutils.sh
68
68
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
- # Debian 6 has Python 2.6 by default, but LLVM needs 2.7+
71
+ # Debian 6 has Python 2.6 by default, but LLVM >= 12 needs Python 3
72
72
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
73
73
RUN ./build-python.sh
74
74
75
- # LLVM needs cmake 3.4.3 or higher, and is planning to raise to 3.13.4.
75
+ # LLVM needs cmake 3.13.4 or higher
76
76
COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
77
77
RUN ./build-cmake.sh
78
78
@@ -99,8 +99,10 @@ ENV RUST_CONFIGURE_ARGS \
99
99
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
100
100
--set llvm.thin-lto=true \
101
101
--set llvm.ninja=false \
102
+ --set llvm.use-linker=lld \
103
+ --set rust.use-lld=true \
102
104
--set rust.jemalloc
103
- ENV SCRIPT ../src/ci/pgo.sh python2.7 ../x.py dist \
105
+ ENV SCRIPT ../src/ci/pgo.sh python3 ../x.py dist \
104
106
--host $HOSTS --target $HOSTS \
105
107
--include-default-paths \
106
108
src/tools/build-manifest
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-11 .0.1
8
8
9
9
mkdir llvm-project
10
10
cd llvm-project
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
source shared.sh
5
5
6
- curl https://www.python.org/ftp/python/2.7.12 /Python-2.7.12 .tgz | \
6
+ curl https://www.python.org/ftp/python/3.9.1 /Python-3.9.1 .tgz | \
7
7
tar xzf -
8
8
9
9
mkdir python-build
@@ -12,10 +12,10 @@ cd python-build
12
12
# Gotta do some hackery to tell python about our custom OpenSSL build, but other
13
13
# than that fairly normal.
14
14
CFLAGS=' -I /rustroot/include' LDFLAGS=' -L /rustroot/lib -L /rustroot/lib64' \
15
- hide_output ../Python-2.7.12 /configure --prefix=/rustroot
15
+ hide_output ../Python-3.9.1 /configure --prefix=/rustroot
16
16
hide_output make -j10
17
17
hide_output make install
18
18
19
19
cd ..
20
20
rm -rf python-build
21
- rm -rf Python-2.7.12
21
+ rm -rf Python-3.9.1
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
./build/$PGO_HOST /stage2/bin/rustc --edition=2018 \
You can’t perform that action at this time.
0 commit comments