Commit 46ab95f8

46ab95f836acMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 1 file · ~1 modified

Description

ci: add self-host fixpoint check on ubuntu/gcc

The build and test steps exercise the round-1 compiler (generated from CRuby) but never feed the compiler through itself, so a stage-2 self-host divergence is invisible to CI. Add a make bootstrap step on the ubuntu/gcc job: it reuses the round-1 binary to generate round 2 and round 3 and requires their IR + C output to match byte-for-byte.

Gated to one Linux/gcc job because the check is on the compiler's own deterministic output, so it is platform- and compiler-independent. LTO=0 keeps the bootstrap binary builds fast without affecting that output.

Co-Authored-By: Claude Opus 4.8 [email protected]

Details

Commit
46ab95f836ac
Parent
d9cf0350f159

.github/workflows/ci.ymlmodifiedView file

@@ -95,6 +95,18 @@
9595 if: matrix.os == 'ubuntu-latest' && matrix.cc == 'gcc'
9696 run: make optcarrot
9797
98+ # Self-host fixpoint check. The build/test steps above exercise the
99+ # round-1 compiler (generated from CRuby) but never feed the compiler
100+ # through itself, so a stage-2 self-host divergence stays invisible to
101+ # them. `make bootstrap` reuses the round-1 binary to generate round 2
102+ # and round 3 and requires their IR + C output to match byte-for-byte.
103+ # Linux/gcc only: the check is on the compiler's own deterministic
104+ # output, so repeating it across the matrix buys nothing. LTO=0 keeps
105+ # the bootstrap binary builds fast without affecting that output.
106+ - name: Self-host fixpoint check
107+ if: matrix.os == 'ubuntu-latest' && matrix.cc == 'gcc'
108+ run: make -j$(getconf _NPROCESSORS_ONLN) LTO=0 bootstrap
109+
98110 - name: sccache stats
99111 if: always()
100112 run: sccache --show-stats