Skip to content

Commit 7413fb2

Browse files
committed
Add a hardcoded (and ephemeral) trunk compiler to the base compilers.
This will only work if Docker container is created around the hardcoded day. After a few days, the archive will be expired. Signed-off-by: Marc Poulhiès <[email protected]>
1 parent 0d9bbd9 commit 7413fb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,19 @@ RUN apt-get update -y -q && apt-get upgrade -y -q && apt-get upgrade -y -q && \
6060
curl "https://s3.amazonaws.com/compiler-explorer/opt/gcc-12.3.0.tar.xz" -o gcc12.tar.xz && \
6161
curl "https://s3.amazonaws.com/compiler-explorer/opt/gcc-13.2.0.tar.xz" -o gcc13.tar.xz && \
6262
curl "https://s3.amazonaws.com/compiler-explorer/opt/gcc-14.2.0.tar.xz" -o gcc14.tar.xz && \
63+
curl "https://s3.amazonaws.com/compiler-explorer/opt/gcc-trunk-20240907.tar.xz" -o gcc-trunk.tar.xz && \
6364
tar Jxf gcc11.tar.xz && \
6465
tar Jxf gcc12.tar.xz && \
6566
tar Jxf gcc13.tar.xz && \
6667
tar Jxf gcc14.tar.xz && \
68+
tar Jxf gcc-trunk.tar.xz && \
69+
mv gcc-trunk-20240907/ gcc-trunk && \
6770
rm gcc*.tar.xz
6871

72+
## Beware of the "trunk" download. It is useful when a cross compiler really
73+
## needs a very recent base compiler (e.g. GNAT). The hardcoded filename for
74+
## trunk will only work for some time as we are expiring them after a few days.
75+
6976
## Need for host GCC version to be ~= latest cross GCC being built.
7077
## This is at least needed for building cross-GNAT (Ada) as the GNAT runtime has no
7178
## requirement on a minimal supported version (e.g. need GCC 12 to build any GNAT runtime).

0 commit comments

Comments
 (0)