deprecations: warn-once for nyash.toml (already wired) + child_env audit (spawns use helper); docs sweep to prefer and hako.toml in README.*; smokes: add Core‑Direct negative rc canaries (array oob set, map bad key) and verified quick/core core_direct suite green
This commit is contained in:
@ -27,6 +27,7 @@ JSON_OUT=""
|
||||
MIR_OUT=""
|
||||
EXE_OUT=""
|
||||
DO_RUN=0
|
||||
KEEP_TMP=0
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
@ -34,6 +35,7 @@ while [ $# -gt 0 ]; do
|
||||
--json) JSON_OUT="$2"; shift 2;;
|
||||
--run) DO_RUN=1; shift;;
|
||||
--mir) MIR_OUT="$2"; shift 2;;
|
||||
--keep-tmp) KEEP_TMP=1; shift;;
|
||||
--exe) EXE_OUT="$2"; shift 2;;
|
||||
*) echo "[selfhost] unknown arg: $1" >&2; exit 2;;
|
||||
esac
|
||||
@ -122,8 +124,10 @@ if [ -n "$EXE_OUT" ]; then
|
||||
"$NYLL" --in "$MIR_TMP" --emit exe --nyrt "$NYRT_DIR" --out "$EXE_OUT"
|
||||
|
||||
# Cleanup
|
||||
if [ -z "$JSON_OUT" ]; then rm -f "$tmp_json" 2>/dev/null || true; fi
|
||||
if [ -z "$MIR_OUT" ]; then rm -f "$MIR_TMP" 2>/dev/null || true; fi
|
||||
if [ "$KEEP_TMP" != "1" ]; then
|
||||
if [ -z "$JSON_OUT" ]; then rm -f "$tmp_json" 2>/dev/null || true; fi
|
||||
if [ -z "$MIR_OUT" ]; then rm -f "$MIR_TMP" 2>/dev/null || true; fi
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -135,7 +139,7 @@ if [ "$DO_RUN" = "1" ]; then
|
||||
"$BIN" --json-file "$tmp_json" >/dev/null 2>&1
|
||||
rc=$?
|
||||
set -e
|
||||
if [ -z "$JSON_OUT" ]; then rm -f "$tmp_json" 2>/dev/null || true; fi
|
||||
if [ "$KEEP_TMP" != "1" ] && [ -z "$JSON_OUT" ]; then rm -f "$tmp_json" 2>/dev/null || true; fi
|
||||
exit $rc
|
||||
else
|
||||
# Emit-only
|
||||
|
||||
Reference in New Issue
Block a user