Files
Brennen Herbruck 916b91e8d0 Vendor solidcore at solidcore/ with its history (solidcore c0d3cc0124)
solidcore's main at c0d3cc0124, rewritten to one commit per same-author run per
PR (2,800 commits, author credit kept; tree identical). Full original history:
tangency-labs/solidcore archive/full-history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

git-subtree-dir: solidcore
git-subtree-mainline: 44525da669
git-subtree-split: c440e5f892
2026-11-08 15:18:40 -05:00

17 lines
786 B
Bash
Executable File
Vendored

#!/usr/bin/env bash
# Regenerate the call graph and the plan (plan/closure.md, plan/units/*.toml, plan/order.md).
# Requires bin/cpp/compile_commands.json (a CMake compilation database of upstream/source/SMLib
# and SM_API configured with g++; nothing is compiled) and libclang (see README.md).
set -euo pipefail
cd "$(dirname "$0")/../.."
VENV=bin/callgraph-venv
if [ ! -x "$VENV/bin/python" ]; then
python3 -m venv "$VENV"
"$VENV/bin/pip" install -q libclang
fi
mkdir -p bin/callgraph
nice -n 10 "$VENV/bin/python" harness/callgraph/extract.py --jobs "${JOBS:-6}" > bin/callgraph/extract.log
nice -n 10 python3 harness/callgraph/build_graph.py
nice -n 10 python3 harness/callgraph/plan_units.py > bin/callgraph/plan_units.log
nice -n 10 python3 harness/callgraph/write_closure.py