justfile: add clean (keeps the built tinycc) and clean-all
CI / test (push) Failing after 10m34s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 01:24:31 -08:00
1 parent a0872c9b40
commit 1bbdf58372
1 file changed
+13
+13
View File
@@ -103,3 +103,16 @@ view: build modules
# 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
scripts/bench-build.sh {{runs}} "{{configs}}"
# Delete build output (compiled compositor, wasm modules, rendered frames) but keep the built tinycc in _build/tcc.
clean:
#!/usr/bin/env bash
set -euo pipefail
rm -rf build
[ -d _build ] && find _build -mindepth 1 -maxdepth 1 ! -name tcc -exec rm -rf {} + || true
echo "cleaned build/ and _build/ (kept _build/tcc; \`just clean-all\` removes that too)"
# Delete all build output, including the built tinycc (the next build recompiles it).
clean-all:
rm -rf _build build