Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a7bc888

Browse files
committed
[Dockerfiles] Use a newer version of ninja when building inside debian8.
Summary: The debian8 repos have an old version of ninja that seems to sometimes crash when building llvm. Reviewers: ioeric, mehdi_amini Reviewed By: ioeric Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D42304 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323134 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d9fb399 commit a7bc888

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils/docker/debian8/build/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ RUN grep deb /etc/apt/sources.list | \
1919
# Install compiler, python and subversion.
2020
RUN apt-get update && \
2121
apt-get install -y --no-install-recommends ca-certificates gnupg \
22-
build-essential python wget subversion ninja-build && \
22+
build-essential python wget subversion unzip && \
2323
rm -rf /var/lib/apt/lists/*
2424

25+
# Install a newer ninja release. It seems the older version in the debian repos
26+
# randomly crashes when compiling llvm.
27+
RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" && \
28+
echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07 ninja-linux.zip" \
29+
| sha256sum -c && \
30+
unzip ninja-linux.zip -d /usr/local/bin && \
31+
rm ninja-linux.zip
32+
2533
# Import public key required for verifying signature of cmake download.
2634
RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684
2735

0 commit comments

Comments
 (0)