Commit 4a7e0e39

4a7e0e39dcf2Merged

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

Description

Drop the legacy bootstrap from make gate and make all

The C compiler is master; the legacy Ruby self-host fixpoint (bootstrap) and its analyze-fail diagnostics are no longer part of the gate. make gate now runs only test || bench || optcarrot, and make all no longer builds the legacy standalone parser (legacy/spinel_parse, which only the legacy compiler uses — the C compiler links its own src/spinel_parse.c).

The legacy tree compiles ONLY on an explicit make legacy / make bootstrap / cd legacy && make; those still work (legacy/Makefile calls back to the root parse target, which is kept). A plain make or make gate never touches legacy/.

Gate green: Optcarrot OK, 940 tests, 57 benchmarks.

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

Details

Commit
4a7e0e39dcf2
Parent
489a419932e8

MakefilemodifiedView file

@@ -1,16 +1,19 @@
11 # Spinel AOT Compiler - Makefile
22 #
33 # Usage:
4-# make Build the C compiler (parser + runtime + spinel)
5-# make parse Build the C parser only
4+# make Build the C compiler (runtime + spinel + tools)
65 # make test Run the feature tests (always a fresh run)
76 # make bench Run benchmarks vs CRuby
87 # make optcarrot End-to-end optcarrot integration test
98 # make legacy Build the legacy Ruby compiler (delegates to legacy/)
109 # make bootstrap Legacy self-host fixpoint check (delegates to legacy/)
1110 # make check Fast pre-commit: rebuild + tests
12-# make gate Full pre-push: test || bench || optcarrot, then bootstrap
11+# make gate Full pre-push: test || bench || optcarrot
1312 # make clean Remove built binaries
13+#
14+# The legacy Ruby compiler (legacy/) is built ONLY by the explicit `make legacy`
15+# / `make bootstrap` delegators or by `cd legacy && make`; the C compiler is
16+# master and a plain `make` / `make gate` never compiles it.
1417
1518 # Shared toolchain configuration (CC wrapping, CFLAGS, LTO, stamps, …).
1619 include common.mk
@@ -57,7 +60,7 @@
5760 # beside lib/ so the binary resolves its runtime lib via ../lib, same as before.
5861 SPINEL = bin/spinel$(EXE)
5962
60-all: parse regexp $(SPINEL) $(RBS_EXTRACT_TARGET) tools
63+all: regexp $(SPINEL) $(RBS_EXTRACT_TARGET) tools
6164
6265 # ---- Dependencies ----
6366 deps: vendor/prism/include/prism/diagnostic.h vendor/rbs/include/rbs/parser.h
@@ -295,7 +298,8 @@
295298 # The actual run. rbs-test golden-checks the RBS extractor (cheap, C-only).
296299 # rbs-seed-test checks the seeds actually reach the analyzer (incl. nested
297300 # classes, #1417). analyze-fail (legacy-analyzer diagnostics) lives in legacy/
298-# now and runs as part of `make gate`, not the hot `make test` loop.
301+# and runs only via an explicit `make analyze-fail-test` / `cd legacy && make`,
302+# not as part of `make gate` or the hot `make test` loop.
299303 test-run: rbs-test rbs-seed-test $(TEST_TARGETS)
300304 @if [ -z "$(TIMEOUT_BIN)" ]; then echo "Note: no 'timeout' command found; running without time limits."; fi
301305 @if [ -t 1 ]; then printf '\n'; fi
@@ -528,26 +532,25 @@
528532 #
529533 # `test`, `bench` and `optcarrot` only READ the compiler binaries and
530534 # write to disjoint build/ dirs, so they run concurrently as parallel
531-# prerequisites; `bootstrap` rewrites spinel_{analyze,codegen} and runs
532-# alone afterward. Every recursive $(MAKE) is `+`-prefixed so the
533-# jobserver fd is inherited; none pass an explicit -j (which would force
534-# a sub-make to spawn its own pool → oversubscription).
535+# prerequisites. Every recursive $(MAKE) is `+`-prefixed so the jobserver
536+# fd is inherited; none pass an explicit -j (which would force a sub-make
537+# to spawn its own pool → oversubscription).
535538
536539 # Fast pre-commit: rebuild the compiler and run the suite. OPT=-O1 compiles
537540 # the sp_runtime.h-heavy per-test C ~3x faster than -O0 (the optimizer prunes
538-# the 800+ unreferenced static fns before codegen). Skips bench/optcarrot/
539-# bootstrap — run `make gate` before pushing for those.
541+# the 800+ unreferenced static fns before codegen). Skips bench/optcarrot —
542+# run `make gate` before pushing for those.
540543 check:
541544 +@$(MAKE) --no-print-directory LTO=0 all
542545 +@$(MAKE) --no-print-directory test OPT=-O1
543546
544-# Full pre-push gate: test || bench || optcarrot in parallel, then the
545-# legacy self-host bootstrap.
547+# Full pre-push gate: test || bench || optcarrot in parallel. The C compiler is
548+# master; the legacy Ruby self-host bootstrap and its analyze-fail diagnostics
549+# are NOT part of the gate (run `make bootstrap` / `cd legacy && make` explicitly
550+# for those).
546551 gate:
547552 +@$(MAKE) --no-print-directory LTO=0 all
548553 +@$(MAKE) --no-print-directory gate-legs
549- +@$(MAKE) --no-print-directory LTO=0 bootstrap
550- +@$(MAKE) --no-print-directory analyze-fail-test
551554 @echo "gate: ALL GREEN"
552555
553556 gate-legs: gate-test gate-bench gate-optcarrot