Migrate selfhost scripts to lang compiler entry; remove residual apps/selfhost-compiler usage in tools; accept optional emission

This commit is contained in:
nyash-codex
2025-11-01 18:53:15 +09:00
parent 2326b6b1bd
commit fcf28be8f9
8 changed files with 17 additions and 37 deletions

View File

@ -4,5 +4,6 @@ SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
ROOT_DIR=$(CDPATH= cd -- "$SCRIPT_DIR/.." && pwd)
NYASH_JSON_ONLY=1 NYASH_DISABLE_PLUGINS=1 NYASH_CLI_VERBOSE=0 \
${ROOT_DIR}/target/release/nyash ${ROOT_DIR}/apps/selfhost/ny-parser-nyash/main.nyash \
# Use lang StageB compiler entry when NY mode is requested
${ROOT_DIR}/target/release/nyash ${ROOT_DIR}/lang/src/compiler/entry/compiler_stageb.hako \
| awk 'BEGIN{printed=0} { if (!printed && $0 ~ /^\s*\{/){ print; printed=1 } }'