forked from OSchip/llvm-project
[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 llvm-svn: 323134
This commit is contained in:
parent
b8f231a42c
commit
cc5e82b2f7
|
@ -19,9 +19,17 @@ RUN grep deb /etc/apt/sources.list | \
|
||||||
# Install compiler, python and subversion.
|
# Install compiler, python and subversion.
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends ca-certificates gnupg \
|
apt-get install -y --no-install-recommends ca-certificates gnupg \
|
||||||
build-essential python wget subversion ninja-build && \
|
build-essential python wget subversion unzip && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install a newer ninja release. It seems the older version in the debian repos
|
||||||
|
# randomly crashes when compiling llvm.
|
||||||
|
RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" && \
|
||||||
|
echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07 ninja-linux.zip" \
|
||||||
|
| sha256sum -c && \
|
||||||
|
unzip ninja-linux.zip -d /usr/local/bin && \
|
||||||
|
rm ninja-linux.zip
|
||||||
|
|
||||||
# Import public key required for verifying signature of cmake download.
|
# Import public key required for verifying signature of cmake download.
|
||||||
RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684
|
RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue