dockerfile: Install a newer version of CMake
This is required if building the master version of LLVM, past the 11 release branch.
This commit is contained in:
1 parent
b34e1cd82b
commit
82a540877d
3 files changed
+14
-7
No files matched your search
@@ -7,6 +7,13 @@ RUN apt-get update -qq && apt-get install -qqy --no-install-recommends \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN cd /opt && \
|
||||||
|
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz && \
|
||||||
|
tar -zxvf cmake-*.tar.gz && \
|
||||||
|
rm cmake-*.tar.gz && \
|
||||||
|
mv cmake-* cmake
|
||||||
|
ENV PATH=/opt/cmake/bin:$PATH
|
||||||
|
|
||||||
|
|
||||||
RUN git config --global user.name "LLVM MinGW" && \
|
RUN git config --global user.name "LLVM MinGW" && \
|
||||||
git config --global user.email root@localhost
|
git config --global user.email root@localhost
|
||||||
|
|||||||
@@ -16,13 +16,6 @@ RUN apt-get update -qq && \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN cd /opt && \
|
|
||||||
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz && \
|
|
||||||
tar -zxvf cmake-*.tar.gz && \
|
|
||||||
rm cmake-*.tar.gz && \
|
|
||||||
mv cmake-* cmake
|
|
||||||
ENV PATH=/opt/cmake/bin:$PATH
|
|
||||||
|
|
||||||
ARG CROSS_ARCH=x86_64
|
ARG CROSS_ARCH=x86_64
|
||||||
ENV CROSS_TOOLCHAIN_PREFIX=/opt/llvm-mingw-$CROSS_ARCH
|
ENV CROSS_TOOLCHAIN_PREFIX=/opt/llvm-mingw-$CROSS_ARCH
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,13 @@ RUN apt-get update -qq && apt-get install -qqy --no-install-recommends \
|
|||||||
apt-get clean -y && \
|
apt-get clean -y && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN cd /opt && \
|
||||||
|
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz && \
|
||||||
|
tar -zxvf cmake-*.tar.gz && \
|
||||||
|
rm cmake-*.tar.gz && \
|
||||||
|
mv cmake-* cmake
|
||||||
|
ENV PATH=/opt/cmake/bin:$PATH
|
||||||
|
|
||||||
|
|
||||||
RUN git config --global user.name "LLVM MinGW" && \
|
RUN git config --global user.name "LLVM MinGW" && \
|
||||||
git config --global user.email root@localhost
|
git config --global user.email root@localhost
|
||||||
|
|||||||
Reference in new issue
Block a user