Files
gem5/util/dockerfiles/clang-compiler/Dockerfile
Bobby R. Bruce 9d635dea55 util-docker: Improve Docker gcc and clang builder
1. Uses the all-dependencies image as the base image.
2. Has all compilers use Ubuntu 24.04.

Notes: This change implitly changes our supported compilers to GCC v10
to v13 and Clang v14 to v18. This will be fully incorporated into the
project later.

Change-Id: Id8e2141ea64a34c7e3532605f6ecb7d9ccb76951
2024-08-13 16:07:15 -07:00

15 lines
617 B
Docker

FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
ARG version=16 # Version of Clang to install in this image. Default is 16.
RUN apt -y update && \
apt -y install clang-${version} && \
update-alternatives --install \
/usr/bin/clang++ clang++ /usr/bin/clang++-${version} 100 && \
update-alternatives --install \
/usr/bin/clang clang /usr/bin/clang-${version} 100 && \
update-alternatives --install \
/usr/bin/c++ c++ /usr/bin/clang++-${version} 100 && \
update-alternatives --install \
/usr/bin/cc cc /usr/bin/clang-${version} 100