just build no longer builds tcc: use $TCC, an already-built vendored tcc, or tcc on PATH
CI / test (push) Failing after 35s
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:
1 parent
1bbdf58372
commit
92d2b29889
3 files changed
+24
-9
No files matched your search
@@ -5,7 +5,7 @@
|
||||
# incr rebuild after touching one source file (compositor/shell/shell.mbt, then lib/ui/ui.mbt)
|
||||
# Runs on a throwaway copy of the sources with its own target dir, so it never touches your
|
||||
# _build/ or the files other people are editing. The tcc configs use the repo's vendored tinycc
|
||||
# (run `just tcc-build` first; its own one-time build is not part of these numbers).
|
||||
# (any tcc scripts/tcc/tcc can find; see that script).
|
||||
#
|
||||
# scripts/bench-build.sh [runs=3] ["tcc cc cc-release"]
|
||||
# tcc debug build, compiled and linked with the vendored tinycc (what `just build` does)
|
||||
@@ -17,7 +17,7 @@ export PATH="$HOME/.moon/bin:$PATH"
|
||||
runs="${1:-3}"
|
||||
configs="${2:-tcc cc}"
|
||||
command -v moon >/dev/null || { echo "error: moon not found" >&2; exit 1; }
|
||||
[ -x "$ROOT/_build/tcc/bin/tcc" ] || [ "$configs" = "cc" ] || { echo "error: run 'just tcc-build' first" >&2; exit 1; }
|
||||
case " $configs " in *" tcc "*) "$ROOT/scripts/tcc/tcc" --which >/dev/null || exit 1 ;; esac
|
||||
|
||||
work="$(mktemp -d)"
|
||||
trap 'rm -rf "$work"' EXIT
|
||||
|
||||
Reference in new issue
Block a user