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
6868COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070
71- # Debian 6 has Python 2.6 by default, but LLVM needs 2.7+
7271COPY 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
7476
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.
7678COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
7779RUN ./build-cmake.sh
7880
Original file line number Diff line number Diff line change @@ -68,11 +68,13 @@ RUN ./build-binutils.sh
6868COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
6969RUN ./build-gcc.sh && apt-get remove -y gcc g++
7070
71- # Debian 6 has Python 2.6 by default, but LLVM needs 2.7+
7271COPY 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
7476
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.
7678COPY host-x86_64/dist-x86_64-linux/build-cmake.sh /tmp/
7779RUN ./build-cmake.sh
7880
Original file line number Diff line number Diff line change 33set -ex
44source shared.sh
55
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 | \
78 tar xzf -
89
910mkdir python-build
@@ -12,10 +13,10 @@ cd python-build
1213# Gotta do some hackery to tell python about our custom OpenSSL build, but other
1314# than that fairly normal.
1415CFLAGS=' -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
1617hide_output make -j10
1718hide_output make install
1819
1920cd ..
2021rm -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