smokes: add curated LLVM runner; archive legacy smokes; PHI-off unified across Bridge/Builder; LLVM resolver tracing; minimal Throw lowering; config env getters; dev profile and root cleaner; docs updated; CI workflow runs curated LLVM (PHI-on/off)

This commit is contained in:
Selfhosting Dev
2025-09-16 23:49:36 +09:00
parent 97a76c0571
commit 5c9213cd03
104 changed files with 8094 additions and 2930 deletions

View File

@ -0,0 +1,47 @@
#!/usr/bin/env bash
set -euo pipefail
# Non-destructive cleaner for stray build artifacts in repo root.
# Dry-run by default; pass --apply to actually remove.
ROOT_DIR=$(cd "$(dirname "$0")/.." && pwd)
APPLY=0
[[ "${1:-}" == "--apply" ]] && APPLY=1
cd "$ROOT_DIR"
patterns=(
"app_*" # e.g., app_parity_*, app_stage3_loop, etc.
"*_app" # e.g., test_filebox_app
"*.o" # stray .o files
)
echo "[clean-root] scanning..."
found=()
for pat in "${patterns[@]}"; do
while IFS= read -r -d $'\0' f; do
# skip directories and keep inside tools/, src/, apps/, etc.
[[ -d "$f" ]] && continue
case "$f" in
src/*|apps/*|examples/*|tools/*|docs/*|tests/*|crates/*|plugins/*) continue ;;
esac
found+=("$f")
done < <(find . -maxdepth 1 -name "$pat" -print0 2>/dev/null || true)
done
if (( ${#found[@]} == 0 )); then
echo "[clean-root] nothing to clean"
exit 0
fi
printf "[clean-root] candidates (%d):\n" "${#found[@]}"
printf ' %s\n' "${found[@]}"
if (( APPLY )); then
echo "[clean-root] removing..."
rm -f -- "${found[@]}"
echo "[clean-root] done"
else
echo "[clean-root] dry-run (no files removed). Use --apply to remove."
fi