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
This commit is contained in:
14
util/dockerfiles/gcc-compiler/Dockerfile
Normal file
14
util/dockerfiles/gcc-compiler/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
|
||||
|
||||
ARG version=13 # Version of GCC to install in this image. Default is 13.
|
||||
|
||||
RUN apt -y update && \
|
||||
apt -y install gcc-${version} g++-${version} && \
|
||||
update-alternatives --install \
|
||||
/usr/bin/g++ g++ /usr/bin/g++-${version} 100 && \
|
||||
update-alternatives --install \
|
||||
/usr/bin/gcc gcc /usr/bin/gcc-${version} 100 && \
|
||||
update-alternatives --install \
|
||||
/usr/bin/c++ c++ /usr/bin/g++-${version} 100 && \
|
||||
update-alternatives --install \
|
||||
/usr/bin/cc cc /usr/bin/gcc-${version} 100
|
||||
Reference in New Issue
Block a user