mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-23 08:53:06 +00:00
916b91e8d0
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:44525da669git-subtree-split:c440e5f892
17 lines
786 B
Bash
Executable File
Vendored
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
|