Files
hakorune/Makefile
nyash-codex d7805e5974 feat(joinir): Phase 213-2 Step 2-2 & 2-3 Data structure extensions
Extended PatternPipelineContext and CarrierUpdateInfo for Pattern 3 AST-based generalization.

Changes:
1. PatternPipelineContext:
   - Added loop_condition: Option<ASTNode>
   - Added loop_body: Option<Vec<ASTNode>>
   - Added loop_update_summary: Option<LoopUpdateSummary>
   - Updated build_pattern_context() for Pattern 3

2. CarrierUpdateInfo:
   - Added then_expr: Option<ASTNode>
   - Added else_expr: Option<ASTNode>
   - Updated analyze_loop_updates() with None defaults

Status: Phase 213-2 Steps 2-2 & 2-3 complete
Next: Create Pattern3IfAnalyzer to extract if statement and populate update summary
2025-12-10 00:01:53 +09:00

70 lines
1.8 KiB
Makefile

# Nyash selfhosting-dev quick targets
.PHONY: build build-release run-minimal smoke-core smoke-selfhost bootstrap roundtrip clean quick fmt lint dep-tree \
smoke-quick smoke-quick-filter smoke-integration stage0-release stage1-selfhost
build:
cargo build --features cranelift-jit
build-release:
cargo build --release --features cranelift-jit
# Stage0: Rust bootstrap binary (hakorune)
stage0-release:
cargo build --release
# Stage1: Hakorune selfhost binary (Ny Executor prototype)
# - Requires Stage0 binary (hakorune) and LLVM toolchain; ny_mir_builder.sh will build ny-llvmc/nyash_kernel as needed.
stage1-selfhost: stage0-release
bash tools/selfhost/build_stage1.sh
run-minimal:
NYASH_DISABLE_PLUGINS=1 ./target/release/hakorune --backend vm apps/selfhost-minimal/main.hako
smoke-core:
bash tools/jit_smoke.sh
smoke-selfhost:
bash tools/selfhost_vm_smoke.sh
bootstrap:
bash tools/bootstrap_selfhost_smoke.sh
roundtrip:
bash tools/ny_roundtrip_smoke.sh
clean:
cargo clean
quick: build-release smoke-selfhost
# --- v2 smokes shortcuts ---
smoke-quick:
bash tools/smokes/v2/run.sh --profile quick
# Usage: make smoke-quick-filter FILTER="json_*"
smoke-quick-filter:
bash tools/smokes/v2/run.sh --profile quick --filter "$(FILTER)"
smoke-integration:
bash tools/smokes/v2/run.sh --profile integration
fmt:
cargo fmt --all
lint:
cargo clippy --all-targets --all-features -- -D warnings || true
# --- Self-hosting dev helpers (Ny-only inner loop) ---
dev:
./tools/dev_selfhost_loop.sh --std -v -- --using-path apps/selfhost:apps apps/selfhost-minimal/main.hako
dev-watch:
./tools/dev_selfhost_loop.sh --watch --std -v -- --using-path apps/selfhost:apps apps/selfhost-minimal/main.hako
# --- Self-host dependency tree (Ny-only) ---
dep-tree:
cargo build --release
./target/release/hakorune --run-task dep_tree