Skip to content

Commit

Permalink
docker: Install a newer CMake
Browse files Browse the repository at this point in the history
LLVM 17 requires CMake 3.20 or newer, while Ubuntu 20.04 ships with
CMake 3.16.3.
  • Loading branch information
mstorsjo committed Jul 14, 2023
1 parent 638a05d commit b1bfbbd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ RUN apt-get update -qq && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*

# Manually install a newer version of CMake; this is needed since building
# LLVM requires CMake 3.20, while Ubuntu 20.04 ships with 3.16.3. If
# updating to a newer distribution, this can be dropped.
RUN cd /opt && \
curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-Linux-$(uname -m).tar.gz && \
tar -zxf cmake-*.tar.gz && \
rm cmake-*.tar.gz && \
mv cmake-* cmake
ENV PATH=/opt/cmake/bin:$PATH


RUN git config --global user.name "LLVM MinGW" && \
git config --global user.email root@localhost

Expand Down
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ RUN apt-get update -qq && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*

# Manually install a newer version of CMake; this is needed since building
# LLVM requires CMake 3.20, while Ubuntu 20.04 ships with 3.16.3. If
# updating to a newer distribution, this can be dropped.
RUN cd /opt && \
curl -LO https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-Linux-$(uname -m).tar.gz && \
tar -zxf cmake-*.tar.gz && \
rm cmake-*.tar.gz && \
mv cmake-* cmake
ENV PATH=/opt/cmake/bin:$PATH


RUN git config --global user.name "LLVM MinGW" && \
git config --global user.email root@localhost

Expand Down

0 comments on commit b1bfbbd

Please sign in to comment.