just build no longer builds tcc: use $TCC, an already-built vendored tcc, or tcc on PATH
CI / test (push) Failing after 35s

scripts/tcc/tcc resolves the compiler (and errors with how to get one if none exists);
tcc-build stays as an optional recipe. bench no longer depends on it either.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 01:27:00 -08:00
1 parent 1bbdf58372
commit 92d2b29889
3 files changed
+24 -9

No files matched your search

+5 -4
View File
@@ -12,7 +12,7 @@ tcc := justfile_directory() + "/scripts/tcc/tcc"
default:
@just --list
# Build the vendored tinycc (third_party/tinycc) into _build/tcc, once.
# Build the vendored tinycc (third_party/tinycc) into _build/tcc, once. Optional: `just build` uses any tcc it can find.
tcc-build:
#!/usr/bin/env bash
set -euo pipefail
@@ -30,8 +30,9 @@ tcc-build:
modules:
scripts/build-modules.sh
# Debug build of the native compositor, compiled and linked with the vendored tcc.
build: tcc-build
# Debug build of the native compositor, compiled and linked with tcc ($TCC, the vendored build if present, or tcc on PATH). Never builds tcc itself.
build:
@{{tcc}} --which >/dev/null
MOON_CC={{tcc}} MOON_STUB_CC={{tcc}} moon build --target native --warn-list -a compositor/bin
# Optimised build with the system C compiler (slower to build, faster to run).
@@ -101,7 +102,7 @@ view: build modules
xdg-open _build/desktop.png
# Time the native build (cold / warm / one-file edit), tcc vs system cc, on a temp copy: `just bench 5` or `just bench 3 "tcc cc cc-release"`.
bench runs="3" configs="tcc cc": tcc-build
bench runs="3" configs="tcc cc":
scripts/bench-build.sh {{runs}} "{{configs}}"
# Delete build output (compiled compositor, wasm modules, rendered frames) but keep the built tinycc in _build/tcc.