This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
src/ci/docker/host-x86_64 Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,13 @@ 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+
72
71
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
73
- RUN ./build-python.sh
72
+ # Build Python 2.7 needed for Clang 10.
73
+ RUN ./build-python.sh 2.7.12
74
+ # Build Python 3 needed for LLVM 12.
75
+ RUN ./build-python.sh 3.9.1
74
76
75
- # LLVM needs cmake 3.4.3 or higher, and is planning to raise to 3.13.4 .
77
+ # LLVM needs cmake 3.13.4 or higher.
76
78
COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
77
79
RUN ./build-cmake.sh
78
80
Original file line number Diff line number Diff line change @@ -68,11 +68,13 @@ 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+
72
71
COPY host-x86_64/dist-x86_64-linux/build-python.sh /tmp/
73
- RUN ./build-python.sh
72
+ # Build Python 2.7 needed for Clang 10.
73
+ RUN ./build-python.sh 2.7.12
74
+ # Build Python 3 needed for LLVM 12.
75
+ RUN ./build-python.sh 3.9.1
74
76
75
- # LLVM needs cmake 3.4.3 or higher, and is planning to raise to 3.13.4 .
77
+ # LLVM needs cmake 3.13.4 or higher.
76
78
COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
77
79
RUN ./build-cmake.sh
78
80
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
+ VERSION=$1
7
+ curl https://www.python.org/ftp/python/$VERSION /Python-$VERSION .tgz | \
7
8
tar xzf -
8
9
9
10
mkdir python-build
@@ -12,10 +13,10 @@ cd python-build
12
13
# Gotta do some hackery to tell python about our custom OpenSSL build, but other
13
14
# than that fairly normal.
14
15
CFLAGS=' -I /rustroot/include' LDFLAGS=' -L /rustroot/lib -L /rustroot/lib64' \
15
- hide_output ../Python-2.7.12 /configure --prefix=/rustroot
16
+ hide_output ../Python-$VERSION /configure --prefix=/rustroot
16
17
hide_output make -j10
17
18
hide_output make install
18
19
19
20
cd ..
20
21
rm -rf python-build
21
- rm -rf Python-2.7.12
22
+ rm -rf Python-$VERSION
You can’t perform that action at this time.
0 commit comments